aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonino Simone Di Stefano <simon.distefano@gmx.de>2024-09-22 23:16:59 +0200
committerAntonino Simone Di Stefano <simon.distefano@gmx.de>2024-09-22 23:16:59 +0200
commitbaf5a06fbadc445a4d7bd1a076a8d1a564ff7e45 (patch)
tree7174ed924f11cfab3670c5441373c78d3ddee8f4
parent3d202da63fc1b4b0d68f80f057c3c1ad827cf298 (diff)
Remove address operator, which lead to a type error
-rw-r--r--core/slice/map.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/slice/map.odin b/core/slice/map.odin
index 2d16e3ae1..a1b0a8925 100644
--- a/core/slice/map.odin
+++ b/core/slice/map.odin
@@ -61,8 +61,8 @@ map_entry_infos :: proc(m: $M/map[$K]$V, allocator := context.allocator) -> (ent
entry_index := 0
for bucket_index in 0..<map_cap {
if hash := hs[bucket_index]; runtime.map_hash_is_valid(hash) {
- key := runtime.map_cell_index_dynamic(ks, &info.map_info.ks, bucket_index)
- value := runtime.map_cell_index_dynamic(vs, &info.map_info.vs, bucket_index)
+ key := runtime.map_cell_index_dynamic(ks, info.map_info.ks, bucket_index)
+ value := runtime.map_cell_index_dynamic(vs, info.map_info.vs, bucket_index)
entries[entry_index].hash = hash
entries[entry_index].key = (^K)(key)^
entries[entry_index].value = (^V)(value)^