]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Changed to int from BYTE
authorSen Huang <senhuang96@fb.com>
Wed, 16 Oct 2019 19:06:02 +0000 (15:06 -0400)
committerSen Huang <senhuang96@fb.com>
Wed, 16 Oct 2019 19:06:02 +0000 (15:06 -0400)
lib/compress/zstd_compress.c

index a8d2b3a4791aedf476f87dbaa73ce599344e1740..672f76080e2278f94ddf90eb2e42dc28683c62d5 100644 (file)
@@ -3258,7 +3258,7 @@ ZSTD_CDict* ZSTD_createCDict(const void* dict, size_t dictSize, int compressionL
                                                   ZSTD_dlm_byCopy, ZSTD_dct_auto,
                                                   cParams, ZSTD_defaultCMem);
     if (cdict)
-        cdict->compressionLevel = compressionLevel == 0 ? (BYTE)ZSTD_CLEVEL_DEFAULT : (BYTE)compressionLevel;
+        cdict->compressionLevel = compressionLevel == 0 ? ZSTD_CLEVEL_DEFAULT : compressionLevel;
     return cdict;
 }