fixed ZSTD_format_e value validation
parent
ecf1778e23
commit
c994932788
|
@ -330,7 +330,7 @@ size_t ZSTD_CCtxParam_setParameter(
|
||||||
switch(param)
|
switch(param)
|
||||||
{
|
{
|
||||||
case ZSTD_p_format :
|
case ZSTD_p_format :
|
||||||
if (value > (unsigned)ZSTD_f_zstd1)
|
if (value > (unsigned)ZSTD_f_zstd1_magicless)
|
||||||
return ERROR(parameter_unsupported);
|
return ERROR(parameter_unsupported);
|
||||||
params->format = (ZSTD_format_e)value;
|
params->format = (ZSTD_format_e)value;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue