summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordaan <daanl@outlook.com>2021-11-09 20:19:31 -0800
committerdaan <daanl@outlook.com>2021-11-09 20:19:31 -0800
commit49c75a31574812a06a6384826421e9603f30032d (patch)
tree7fa88a98ec0da87ab72a94017e7f75ebf4fe4828 /test
parentc17878d1a7f06a59eaddb79c3283212b490ffb6a (diff)
wip: increase commit mask resolution
Diffstat (limited to 'test')
-rw-r--r--test/test-stress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-stress.c b/test/test-stress.c
index a9568dd..100c6d6 100644
--- a/test/test-stress.c
+++ b/test/test-stress.c
@@ -39,12 +39,12 @@ static size_t use_one_size = 0; // use single object size of `N * s
// #define USE_STD_MALLOC
#ifdef USE_STD_MALLOC
-#define custom_calloc(n,s) calloc(n,s)
+#define custom_calloc(n,s) malloc(n*s)
#define custom_realloc(p,s) realloc(p,s)
#define custom_free(p) free(p)
#else
#include <mimalloc.h>
-#define custom_calloc(n,s) mi_calloc(n,s)
+#define custom_calloc(n,s) mi_malloc(n*s)
#define custom_realloc(p,s) mi_realloc(p,s)
#define custom_free(p) mi_free(p)
#endif