From 774694ec6dd36f1bb8e5fd3a55a2c47e48295e21 Mon Sep 17 00:00:00 2001 From: Stefano Cossu Date: Mon, 7 Mar 2022 20:38:21 -0800 Subject: [PATCH] Correct cursor increase. --- hashmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashmap.c b/hashmap.c index 3547cb1..faa88c8 100644 --- a/hashmap.c +++ b/hashmap.c @@ -431,7 +431,7 @@ bool hashmap_iter(struct hashmap *map, size_t *i, void **item) if (*i >= map->nbuckets) return false; bucket = bucket_at(map, *i); - *i++; + (*i)++; } while (!bucket->dib); *item = bucket_item(bucket);