mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 03:40:08 +00:00
Fixed core library bugs after recent changes. (#257)
* Fix `delete_map` calling `delete_dynamic_array` instead of `delete_slice for its hashes. * Removed print statements from `__dynamic_map_rehash`
This commit is contained in:
committed by
Mikkel Hjortshøj
parent
11f5236434
commit
8cd2797b2e
+1
-1
@@ -64,7 +64,7 @@ delete_slice :: proc(array: $T/[]$E, allocator := context.allocator, loc := #cal
|
||||
}
|
||||
delete_map :: proc(m: $T/map[$K]$V, loc := #caller_location) {
|
||||
raw := transmute(Raw_Map)m;
|
||||
delete_dynamic_array(raw.hashes, loc);
|
||||
delete_slice(raw.hashes);
|
||||
free(raw.entries.data, raw.entries.allocator, loc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user