mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 06:12:05 -04:00
Minor clean up
This commit is contained in:
1 parent
7305478261
commit
a3e77dcc3b
3 files changed
+17
-10
No files matched your search
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user