diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2021-06-16 05:31:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 05:31:01 (GMT) |
commit | 4f0c7e45c54b7b7e42c16defb764a01129d4a0a8 (patch) | |
tree | 1a1e6e6ee5413fa8cbd271f8570f668698028eb2 /lib | |
parent | e51a6be463d359e4acfd3212cb49c82b89d633c4 (diff) | |
parent | b3d46ae07fc04609cd7335ab5d06b01f269e7719 (diff) | |
download | lz4-4f0c7e45c54b7b7e42c16defb764a01129d4a0a8.zip lz4-4f0c7e45c54b7b7e42c16defb764a01129d4a0a8.tar.gz lz4-4f0c7e45c54b7b7e42c16defb764a01129d4a0a8.tar.bz2 |
Merge pull request #1001 from GabeNI/dev
Cast ALLOC return value to satisfy C++
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1359,7 +1359,7 @@ int LZ4_compress_fast(const char* source, char* dest, int inputSize, int maxOutp { int result; #if (LZ4_HEAPMODE) - LZ4_stream_t* ctxPtr = ALLOC(sizeof(LZ4_stream_t)); /* malloc-calloc always properly aligned */ + LZ4_stream_t* ctxPtr = (LZ4_stream_t*)ALLOC(sizeof(LZ4_stream_t)); /* malloc-calloc always properly aligned */ if (ctxPtr == NULL) return 0; #else LZ4_stream_t ctx; |