Fixing appveyor test

This commit is contained in:
Bimba Shrestha 2019-09-26 16:21:57 -07:00
parent 75b1286354
commit 91daee5c06

View File

@ -1987,10 +1987,11 @@ static int basicUnitTests(U32 const seed, double compressibility)
BYTE* decoded = (BYTE*)compressedBuffer; BYTE* decoded = (BYTE*)compressedBuffer;
ZSTD_CCtx* cctx = ZSTD_createCCtx(); ZSTD_CCtx* cctx = ZSTD_createCCtx();
ZSTD_Sequence* seqs = malloc(srcSize * sizeof(ZSTD_Sequence)); ZSTD_Sequence* seqs = (ZSTD_Sequence*)malloc(srcSize * sizeof(ZSTD_Sequence));
size_t seqsSize; size_t i; size_t seqsSize; size_t i;
U32 randSeed = seed; U32 randSeed = seed;
if (seqs == NULL) goto _output_error;
assert(cctx != NULL); assert(cctx != NULL);
/* Populate src with random data */ /* Populate src with random data */