]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
zbufftest.c: fixed g++ warning 196/head
authorinikep <inikep@gmail.com>
Tue, 31 May 2016 18:21:43 +0000 (20:21 +0200)
committerinikep <inikep@gmail.com>
Tue, 31 May 2016 18:21:43 +0000 (20:21 +0200)
programs/zbufftest.c

index 5b172d23e05387ab58176f03c19be1f49597b732..552d092877ed3441a706b2492c6bfef10c3678d9 100644 (file)
@@ -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 */