diff options
author | Gabe Jones <gabe.jones@ni.com> | 2021-06-15 17:09:14 (GMT) |
---|---|---|
committer | Gabe Jones <gabe.jones@ni.com> | 2021-06-15 17:09:14 (GMT) |
commit | b3d46ae07fc04609cd7335ab5d06b01f269e7719 (patch) | |
tree | 7a15165f41813ac654e17023c5157a15243e5ffc /lib/lz4.c | |
parent | 355f60952938e5bd4d45118af720d4b8fb0c8a09 (diff) | |
download | lz4-b3d46ae07fc04609cd7335ab5d06b01f269e7719.zip lz4-b3d46ae07fc04609cd7335ab5d06b01f269e7719.tar.gz lz4-b3d46ae07fc04609cd7335ab5d06b01f269e7719.tar.bz2 |
Cast ALLOC return value to satisfy C++
Diffstat (limited to 'lib/lz4.c')
-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; |