diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 7061d1f6..8c9d4771 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -330,7 +330,7 @@ size_t ZSTD_CCtxParam_setParameter( switch(param) { case ZSTD_p_format : - if (value > (unsigned)ZSTD_f_zstd1) + if (value > (unsigned)ZSTD_f_zstd1_magicless) return ERROR(parameter_unsupported); params->format = (ZSTD_format_e)value; return 0;