From: inikep Date: Tue, 31 May 2016 18:21:43 +0000 (+0200) Subject: zbufftest.c: fixed g++ warning X-Git-Tag: v0.7.0^2~37^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf6edcd0a13fd7f2dc85384e3883886535960d23;p=thirdparty%2Fzstd.git zbufftest.c: fixed g++ warning --- diff --git a/programs/zbufftest.c b/programs/zbufftest.c index 5b172d23e..552d09287 100644 --- a/programs/zbufftest.c +++ b/programs/zbufftest.c @@ -192,7 +192,7 @@ static int basicUnitTests(U32 seed, double compressibility, ZSTD_customMem custo ZBUFF_decompressInitDictionary(zd, CNBuffer, 128 KB); readSize = cSize - readSkipSize; genSize = CNBufferSize; - result = ZBUFF_decompressContinue(zd, decodedBuffer, &genSize, compressedBuffer+readSkipSize, &readSize); + result = ZBUFF_decompressContinue(zd, decodedBuffer, &genSize, ((char*)compressedBuffer)+readSkipSize, &readSize); if (result != 0) goto _output_error; /* should reach end of frame == 0; otherwise, some data left, or an error */ if (genSize != CNBufferSize) goto _output_error; /* should regenerate the same amount */ if (readSize+readSkipSize != cSize) goto _output_error; /* should have read the entire frame */