diff options
author | Yann Collet <cyan@fb.com> | 2020-11-09 16:44:26 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2020-11-09 16:44:26 (GMT) |
commit | a29683980264b046797e207c6e995cae0a12b0a8 (patch) | |
tree | 9dbf11978bb7518245ac343c33653c9b71e6a94b /lib | |
parent | adc46ea4c176380fb104273f66f1e618713a2481 (diff) | |
download | lz4-a29683980264b046797e207c6e995cae0a12b0a8.zip lz4-a29683980264b046797e207c6e995cae0a12b0a8.tar.gz lz4-a29683980264b046797e207c6e995cae0a12b0a8.tar.bz2 |
changed LZ4_calloc() to a 2-arguments signature
to remain similar to stdlib's calloc().
Updated test to use c++ compiler for stricter signature check.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -193,10 +193,10 @@ * Below functions must exist somewhere in the Project * and be available at link time */ void* LZ4_malloc(size_t s); -void* LZ4_calloc(size_t s); +void* LZ4_calloc(size_t n, size_t s); void LZ4_free(void* p); # define ALLOC(s) LZ4_malloc(s) -# define ALLOC_AND_ZERO(s) LZ4_calloc(s) +# define ALLOC_AND_ZERO(s) LZ4_calloc(1,s) # define FREEMEM(p) LZ4_free(p) #else # include <stdlib.h> /* malloc, calloc, free */ |