Skip to content

Commit b3e78c8

Browse files
committed
mem: simplify tjs__mallocz
1 parent 0fe017b commit b3e78c8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/mem.c

+1-5
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ void *tjs__malloc(size_t size) {
4949
}
5050

5151
void *tjs__mallocz(size_t size) {
52-
#ifdef TJS__HAS_MIMALLOC
53-
return mi_calloc(1, size);
54-
#else
55-
return calloc(1, size);
56-
#endif
52+
return tjs__calloc(1, size);
5753
}
5854

5955
void *tjs__calloc(size_t count, size_t size) {

0 commit comments

Comments
 (0)