From 7d1bc9cc8c79f7412c44835b910945792b2238c7 Mon Sep 17 00:00:00 2001 From: cyan4973 Date: Wed, 18 Jul 2018 16:10:23 +0200 Subject: [PATCH] fix minor conversion warning --- tests/fuzzer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fuzzer.c b/tests/fuzzer.c index b9d319ea..c411d417 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -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();