Browse Source

Fix `map_get` typo

gingerBill 2 years ago
parent
commit
ecad730945
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/runtime/dynamic_map_internal.odin

+ 1 - 1
core/runtime/dynamic_map_internal.odin

@@ -771,7 +771,7 @@ map_get :: proc "contextless" (m: $T/map[$K]$V, key: K) -> (stored_key: K, store
 	info := intrinsics.type_map_info(T)
 	key := key
 
-	h := info.key_hasher(&key, map_seed(m))
+	h := info.key_hasher(&key, map_seed(rm))
 	pos := map_desired_position(rm, h)
 	distance := uintptr(0)
 	mask := (uintptr(1) << map_log2_cap(rm)) - 1