diff options
author | Yann Collet <cyan@fb.com> | 2016-11-13 01:14:57 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2016-11-13 01:14:57 (GMT) |
commit | 84b97f90b81195590700fb791b83165d9e8cc1cd (patch) | |
tree | fbda5de6955475d32e24ebb428ab604030c9f098 /lib | |
parent | 94542d845884c922f809725807ecbd2cf7454ace (diff) | |
download | lz4-84b97f90b81195590700fb791b83165d9e8cc1cd.zip lz4-84b97f90b81195590700fb791b83165d9e8cc1cd.tar.gz lz4-84b97f90b81195590700fb791b83165d9e8cc1cd.tar.bz2 |
fuzzer code refactoring
fix g++ conversion warning
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4hc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c index 02e716f..6de8e8f 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -506,7 +506,7 @@ int LZ4_compress_HC_extStateHC (void* state, const char* src, char* dst, int src int LZ4_compress_HC(const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel) { #if defined(LZ4HC_HEAPMODE) && LZ4HC_HEAPMODE==1 - LZ4_streamHC_t* const statePtr = malloc(sizeof(LZ4_streamHC_t)); + LZ4_streamHC_t* const statePtr = (LZ4_streamHC_t*)malloc(sizeof(LZ4_streamHC_t)); #else LZ4_streamHC_t state; LZ4_streamHC_t* const statePtr = &state; |