--- a/src/hash_map.c Sun Jan 05 18:19:42 2025 +0100 +++ b/src/hash_map.c Mon Jan 06 23:29:41 2025 +0100 @@ -433,11 +433,10 @@ map->base.collection.allocator = allocator; if (itemsize > 0) { - map->base.collection.store_pointer = false; map->base.collection.elem_size = itemsize; } else { + map->base.collection.elem_size = sizeof(void *); map->base.collection.store_pointer = true; - map->base.collection.elem_size = sizeof(void *); } return (CxMap *) map;