From 29d244c1a6284be750c36d38b0dc569b3274274e Mon Sep 17 00:00:00 2001 From: Spencer Brower <6729162+sbrow@users.noreply.github.com> Date: Sun, 19 Jul 2026 14:52:57 -0400 Subject: [PATCH] fix: Fixed issue with double-any wrapping. --- mustache/data.odin | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mustache/data.odin b/mustache/data.odin index 7a0f78e..ca2ca3e 100644 --- a/mustache/data.odin +++ b/mustache/data.odin @@ -64,7 +64,11 @@ lookup_in :: proc(container: any, key: string) -> (result: any, found: bool) { h := mi.map_info.key_hasher(&k, seed) value_ptr := runtime.__dynamic_map_get(rm_ptr, mi.map_info, h, &k) 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 } }