mirror of
https://github.com/facebook/zstd.git
synced 2025-11-27 00:05:09 -05:00
[fuzz] Make simple_round_trip compile cleanly
This commit is contained in:
parent
23199b6daf
commit
bfad5568b5
@ -38,10 +38,11 @@ static size_t roundTripTest(void *result, size_t resultCapacity,
|
||||
if (FUZZ_rand(&seed) & 1) {
|
||||
ZSTD_inBuffer in = {src, srcSize, 0};
|
||||
ZSTD_outBuffer out = {compressed, compressedCapacity, 0};
|
||||
size_t err;
|
||||
|
||||
ZSTD_CCtx_reset(cctx);
|
||||
FUZZ_setRandomParameters(cctx, &seed);
|
||||
size_t const err = ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_end);
|
||||
err = ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_end);
|
||||
if (err != 0) {
|
||||
return err;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user