From: Paul Cruz Date: Mon, 19 Jun 2017 23:32:38 +0000 (-0700) Subject: scope change X-Git-Tag: v1.3.0~1^2~15^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=791352ad0e4f2e4aabefa224becda064191588af;p=thirdparty%2Fzstd.git scope change --- diff --git a/tests/decodecorpus.c b/tests/decodecorpus.c index bd6d762e8..4c6e4b27f 100644 --- a/tests/decodecorpus.c +++ b/tests/decodecorpus.c @@ -1476,11 +1476,13 @@ static int generateCorpusWithDict(U32 seed, unsigned numFiles, const char* const errorDetected = 1; goto dictCleanup; } - size_t const returnValue = ZSTD_decompress_usingDict(dctx, decompressedPtr, MAX_DECOMPRESSED_SIZE, - fr.dataStart, (BYTE*)fr.data - (BYTE*)fr.dataStart, - fullDict, dictSize); - if (ZSTD_isError(returnValue)) { - DISPLAY("Error: %s\n", ZSTD_getErrorName(returnValue)); + { + size_t const returnValue = ZSTD_decompress_usingDict(dctx, decompressedPtr, MAX_DECOMPRESSED_SIZE, + fr.dataStart, (BYTE*)fr.data - (BYTE*)fr.dataStart, + fullDict, dictSize); + if (ZSTD_isError(returnValue)) { + DISPLAY("Error: %s\n", ZSTD_getErrorName(returnValue)); + } } /* print differences if any */