updated ZSTD_format_e value validation

also updated manual
This commit is contained in:
Yann Collet
2017-09-27 11:19:21 -07:00
parent 9416195221
commit ecf1778e23
2 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ size_t ZSTD_CCtxParam_setParameter(
switch(param)
{
case ZSTD_p_format :
if (value > (unsigned)ZSTD_f_zstd1_block)
if (value > (unsigned)ZSTD_f_zstd1)
return ERROR(parameter_unsupported);
params->format = (ZSTD_format_e)value;
return 0;