]> 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>
Mon, 21 Oct 2019 19:36:12 +0000 (15:36 -0400)
lib/compress/zstd_compress.c

index 2daa588f18430f163941e87f3aee308d4cb9f530..634a0f85732a5af1c703662d2bd7506093dece95 100644 (file)
@@ -3267,7 +3267,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;
 }