Change internal map indices to use a distinct uint rather than just int

This commit is contained in:
gingerBill
2022-09-17 12:21:23 +01:00
parent c462496bd5
commit b967ae2739
3 changed files with 28 additions and 26 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ clear_map :: proc "contextless" (m: ^$T/map[$K]$V) {
entries := (^Raw_Dynamic_Array)(&raw_map.entries)
entries.len = 0
for _, i in raw_map.hashes {
raw_map.hashes[i] = -1
raw_map.hashes[i] = MAP_SENTINEL
}
}