]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix minor conversion warning
authorcyan4973 <yann.collet.73@gmail.com>
Wed, 18 Jul 2018 14:10:23 +0000 (16:10 +0200)
committercyan4973 <yann.collet.73@gmail.com>
Wed, 18 Jul 2018 14:10:23 +0000 (16:10 +0200)
tests/fuzzer.c

index b9d319ea2bd77af0247ba7dda981d3f5ea913111..c411d41772080352223eec265e1aab2e932f027c 100644 (file)
@@ -414,7 +414,7 @@ static int basicUnitTests(U32 seed, double compressibility)
     DISPLAYLEVEL(3, "test%3d : re-using a CCtx should compress the same : ", testNb++);
     {   int i;
         for (i=0; i<20; i++)
-            ((char*)CNBuffer)[i] = i;   /* ensure no match during initial section */
+            ((char*)CNBuffer)[i] = (char)i;   /* ensure no match during initial section */
         memcpy((char*)CNBuffer + 20, CNBuffer, 10);   /* create one match, starting from beginning of sample, which is the difficult case (see #1241) */
         for (i=1; i<=19; i++) {
             ZSTD_CCtx* const cctx = ZSTD_createCCtx();