src/hash_map.c

changeset 1111
78eeeb950883
parent 1088
881994685681
child 1114
ad5eeb256242
--- 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;

mercurial