summaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'map.c')
-rw-r--r--map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/map.c b/map.c
index 99c2c6f..d46a408 100644
--- a/map.c
+++ b/map.c
@@ -38,7 +38,8 @@ void map_init_capacity(
map->__buckets = calloc(map->__num_buckets, sizeof(struct __map_entry*));
if (map->__buckets == NULL)
- crash("Out of memory allocating %ld hash buckets\n");
+ crash(
+ "Out of memory allocating %ld hash buckets\n", map->__num_buckets);
}
void map_destroy(map_t* map) {