Also Fix Appveyor Cast Warning
authorW. Felix Handte <w@felixhandte.com>
Tue, 22 May 2018 15:28:39 +0000 (11:28 -0400)
committerW. Felix Handte <w@felixhandte.com>
Tue, 22 May 2018 15:44:15 +0000 (11:44 -0400)
lib/lz4.c

index ecd60fb..05454fc 100644 (file)
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -714,7 +714,7 @@ LZ4_FORCE_INLINE int LZ4_compress_generic(
         cctx->dictSize += (U32)inputSize;
     }
     cctx->currentOffset += (U32)inputSize;
-    cctx->tableType = tableType;
+    cctx->tableType = (U16)tableType;
 
     if (inputSize<LZ4_minLength) goto _last_literals;        /* Input too small, no compression (all literals) */