diff -r d7129285ac32 -r dce9b8450656 src/hash_map.c --- a/src/hash_map.c Tue Mar 21 17:21:20 2023 +0100 +++ b/src/hash_map.c Tue Mar 28 19:13:33 2023 +0200 @@ -428,15 +428,16 @@ } // initialize base members - map->base.store_pointers = false; map->base.cl = &cx_hash_map_class; map->base.allocator = allocator; map->base.size = 0; if (itemsize > 0) { + map->base.store_pointers = false; map->base.itemsize = itemsize; } else { - cxMapStorePointers((CxMap *) map); + map->base.store_pointers = true; + map->base.itemsize = sizeof(void *); } return (CxMap *) map;