updated ZSTD_format_e value validation

also updated manual
This commit is contained in:
Yann Collet committed 2017-09-27 11:19:21 -07:00
1 parent 9416195221
commit ecf1778e23
2 files changed
+13 -13

No files matched your search

+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;