Change internal layout of map[K]V
This commit is contained in:
1 parent
4762d2f2d1
commit
91758656f6
6 files changed
+109
-121
No files matched your search
@@ -264,7 +264,8 @@ reserve_map :: proc(m: ^$T/map[$K]$V, capacity: int) {
|
||||
@builtin
|
||||
delete_key :: proc(m: ^$T/map[$K]$V, key: K) {
|
||||
if m != nil {
|
||||
__dynamic_map_delete_key(__get_map_header(m), __get_map_key(key));
|
||||
key := key;
|
||||
__dynamic_map_delete_key(__get_map_header(m), __get_map_key(&key));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user