]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Cast to BYTE to appease appveyor
authorSen Huang <senhuang96@fb.com>
Tue, 15 Oct 2019 17:58:44 +0000 (13:58 -0400)
committerSen Huang <senhuang96@fb.com>
Tue, 15 Oct 2019 17:58:44 +0000 (13:58 -0400)
lib/compress/zstd_compress.c

index adf0ccab7e48d7e1f3383e0416d368f4857fa0cf..2737b05f7b4afb17650511c552d16f50521edbbb 100644 (file)
@@ -3257,7 +3257,7 @@ ZSTD_CDict* ZSTD_createCDict(const void* dict, size_t dictSize, int compressionL
     ZSTD_CDict* cdict = ZSTD_createCDict_advanced(dict, dictSize,
                                                   ZSTD_dlm_byCopy, ZSTD_dct_auto,
                                                   cParams, ZSTD_defaultCMem);
-    cdict->compressionLevel = compressionLevel == 0 ? ZSTD_CLEVEL_DEFAULT : compressionLevel;
+    cdict->compressionLevel = compressionLevel == 0 ? (BYTE)ZSTD_CLEVEL_DEFAULT : (BYTE)compressionLevel;
     return cdict;
 }