aboutsummaryrefslogtreecommitdiffstats
path: root/include/container.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/container.h')
-rw-r--r--include/container.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/container.h b/include/container.h
index 6ac9054..db4fa4f 100644
--- a/include/container.h
+++ b/include/container.h
@@ -1278,7 +1278,7 @@ char hset_insert_mallocated(struct hash_set* set, void* element) {
}
void* hset_at(struct hash_set* set, void* element) {
size_t index = set->hash(element) % array_size(set->buckets);
- if (ll_search(set->buckets, element, set->eq))
+ if (ll_search(set->buckets + index, element, set->eq))
return ll_find(set->buckets + index, element, set->eq)->data;
return NULL;
}