aboutsummaryrefslogtreecommitdiff
path: root/src/string_set.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-04-26 13:25:08 +0100
committergingerBill <bill@gingerbill.org>2024-04-26 13:25:08 +0100
commita3e77dcc3bc4cf7d0548afa73d38914354761aa0 (patch)
tree5c71048f33e4c1a87c6cb68b8e3af510b5e01bfe /src/string_set.cpp
parent7305478261700fc95f6748ba3091978a3fe7b1f3 (diff)
Minor clean up
Diffstat (limited to 'src/string_set.cpp')
-rw-r--r--src/string_set.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/string_set.cpp b/src/string_set.cpp
index fb4640c20..a37d8ba80 100644
--- a/src/string_set.cpp
+++ b/src/string_set.cpp
@@ -208,7 +208,9 @@ gb_internal void string_set__erase(StringSet *s, MapFindResult fr) {
}
auto *entry = &s->entries[fr.entry_index];
*entry = s->entries[s->entries.count-1];
- StringHashKey key = {entry->hash, entry->value};
+ StringHashKey key;
+ key.hash = entry->hash;
+ key.string = entry->value;
last = string_set__find(s, key);
if (last.entry_prev != MAP_SENTINEL) {
s->entries[last.entry_prev].next = fr.entry_index;