From 23ac1f4f98accc3bb84e81be264d8408be372028 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 17 May 2020 18:28:05 -0700 Subject: fix: bugs associated to map reallocating --- include/libn.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/libn.h') diff --git a/include/libn.h b/include/libn.h index 87c993c..8e21056 100644 --- a/include/libn.h +++ b/include/libn.h @@ -76,6 +76,11 @@ void *·alloc(void* _, uint n, ulong size) { return malloc(n*size); } +static +void *·calloc(void* _, uint n, ulong size) { + return calloc(n, size); +} + // TODO(nnoll): Allow for nil iterfaces? static mem·Allocator mem·sys = { -- cgit v1.2.1