fix: Fixed issue with double-any wrapping.

This commit is contained in:
Spencer Brower
2026-07-19 14:52:57 -04:00
parent efe0c42e5c
commit 29d244c1a6
+5 -1
View File
@@ -64,7 +64,11 @@ lookup_in :: proc(container: any, key: string) -> (result: any, found: bool) {
h := mi.map_info.key_hasher(&k, seed) h := mi.map_info.key_hasher(&k, seed)
value_ptr := runtime.__dynamic_map_get(rm_ptr, mi.map_info, h, &k) value_ptr := runtime.__dynamic_map_get(rm_ptr, mi.map_info, h, &k)
if value_ptr != nil { if value_ptr != nil {
result = any{value_ptr, mi.value.id} if _, ok := mi.value.variant.(runtime.Type_Info_Any); ok {
result = (^any)(value_ptr)^
} else {
result = any{value_ptr, mi.value.id}
}
found = true found = true
} }
} }