diff --git a/hashmap.c b/hashmap.c index b171292..5d217f2 100644 --- a/hashmap.c +++ b/hashmap.c @@ -118,7 +118,7 @@ struct hashmap *hashmap_new(size_t elsize, size_t cap, map->compare = compare; map->udata = udata; map->spare = ((char*)map)+sizeof(struct hashmap); - map->edata = map->spare+bucketsz; + map->edata = (char*)map->spare+bucketsz; map->cap = cap; map->nbuckets = cap; map->mask = map->nbuckets-1;