aboutsummaryrefslogtreecommitdiff
path: root/src/ptr_map.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-11-05 17:13:07 +0000
committergingerBill <bill@gingerbill.org>2021-11-05 17:13:07 +0000
commit541beb615b745b45f2cc82813014a3e04f1a3231 (patch)
treeea3e2998ecd095ed3e8b49da7eefb25e36f350fe /src/ptr_map.cpp
parent6646348e1a0086d9a2341d0866f787ffc2608c8f (diff)
Move more things to `PtrMap`
Diffstat (limited to 'src/ptr_map.cpp')
-rw-r--r--src/ptr_map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ptr_map.cpp b/src/ptr_map.cpp
index 2387a2a20..0a61d300f 100644
--- a/src/ptr_map.cpp
+++ b/src/ptr_map.cpp
@@ -253,7 +253,7 @@ template <typename K, typename V>
PtrMapEntry<K, V> *multi_map_find_next(PtrMap<K, V> *h, PtrMapEntry<K, V> *e) {
isize i = e->next;
while (i != MAP_SENTINEL) {
- if (hash_key_equal(h->entries.data[i].key, e->key)) {
+ if (h->entries.data[i].key == e->key) {
return &h->entries.data[i];
}
i = h->entries.data[i].next;