Correct cursor increase.

pull/18/head
Stefano Cossu 3 years ago
parent 86ac5d4b2d
commit 774694ec6d

@ -431,7 +431,7 @@ bool hashmap_iter(struct hashmap *map, size_t *i, void **item)
if (*i >= map->nbuckets) return false; if (*i >= map->nbuckets) return false;
bucket = bucket_at(map, *i); bucket = bucket_at(map, *i);
*i++; (*i)++;
} while (!bucket->dib); } while (!bucket->dib);
*item = bucket_item(bucket); *item = bucket_item(bucket);

Loading…
Cancel
Save