diff options
| author | gingerBill <bill@gingerbill.org> | 2022-09-23 12:09:46 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-09-23 12:09:46 +0100 |
| commit | 83ffb68bb7025752639b746597cdcfa463cc7074 (patch) | |
| tree | d154751387b71007ee4395ed9c863eb7bd6d8ed1 /core/runtime | |
| parent | 470532198821491ba5b11c69a59572518ace24be (diff) | |
Fix typo in `map_insert`
Diffstat (limited to 'core/runtime')
| -rw-r--r-- | core/runtime/core_builtin.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime/core_builtin.odin b/core/runtime/core_builtin.odin index 574023a1e..b5b003122 100644 --- a/core/runtime/core_builtin.odin +++ b/core/runtime/core_builtin.odin @@ -672,7 +672,7 @@ shrink_dynamic_array :: proc(array: ^$T/[dynamic]$E, new_cap := -1, loc := #call @builtin map_insert :: proc(m: ^$T/map[$K]$V, key: K, value: V, loc := #caller_location) -> (ptr: ^V) { key, value := key, value - h := __get_map_header(T) + h := __get_map_header_table(T) e := __dynamic_map_set(m, h, __get_map_key_hash(&key), &key, &value, loc) return (^V)(uintptr(e) + h.value_offset) |