1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

Change to heap allocation, remove implicit type conversion

This commit is contained in:
Sen Huang
2019-11-04 14:33:52 -05:00
parent e1edc554a3
commit 97b7f712f3
2 changed files with 6 additions and 5 deletions

View File

@ -1137,7 +1137,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
size_t* const samplesSizes = (size_t*) malloc(nbSamples * sizeof(size_t));
size_t dictSize;
U32 dictID;
U32 dictHeaderSize;
size_t dictHeaderSize;
if (dictBuffer==NULL || samplesSizes==NULL) {
free(dictBuffer);