Browse Source

Fix typo in `map_insert`

gingerBill 2 years ago
parent
commit
83ffb68bb7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/runtime/core_builtin.odin

+ 1 - 1
core/runtime/core_builtin.odin

@@ -672,7 +672,7 @@ shrink_dynamic_array :: proc(array: ^$T/[dynamic]$E, new_cap := -1, loc := #call
 @builtin
 @builtin
 map_insert :: proc(m: ^$T/map[$K]$V, key: K, value: V, loc := #caller_location) -> (ptr: ^V) {
 map_insert :: proc(m: ^$T/map[$K]$V, key: K, value: V, loc := #caller_location) -> (ptr: ^V) {
 	key, value := key, value
 	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)
 	e := __dynamic_map_set(m, h, __get_map_key_hash(&key), &key, &value, loc)
 	return (^V)(uintptr(e) + h.value_offset)
 	return (^V)(uintptr(e) + h.value_offset)