Fix cast needed for MSVC

fixes #9
pull/13/head v0.3.2
tidwall 4 years ago
parent c039c886f9
commit 30b9a6cc88

@ -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;

Loading…
Cancel
Save