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 /tests | |
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 'tests')
-rw-r--r-- | tests/fullbench.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fullbench.c b/tests/fullbench.c index 39932d2..181128e 100644 --- a/tests/fullbench.c +++ b/tests/fullbench.c @@ -159,7 +159,7 @@ static size_t BMK_findMaxMem(U64 requiredMem) * Memory management, to test LZ4_USER_MEMORY_FUNCTIONS *********************************************************/ void* LZ4_malloc(size_t s) { return malloc(s); } -void* LZ4_calloc(size_t s) { return calloc(1,s); } +void* LZ4_calloc(size_t n, size_t s) { (void)n; return calloc(1,s); } void LZ4_free(void* p) { free(p); } |