From 7e6f349c4462e1596102bdd3566e08533cbe5ca5 Mon Sep 17 00:00:00 2001 From: Evan Oman Date: Sat, 13 Apr 2024 21:43:18 -0500 Subject: [PATCH] Adds reference in gen_map elem fn --- bind/gen_map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bind/gen_map.go b/bind/gen_map.go index 27c1d86..834121b 100644 --- a/bind/gen_map.go +++ b/bind/gen_map.go @@ -303,7 +303,7 @@ otherwise parameter is a python list that we copy from g.gofile.Outdent() g.gofile.Printf("}\n") if esym.go2py != "" { - g.gofile.Printf("return %s(v)%s\n", esym.go2py, esym.go2pyParenEx) + g.gofile.Printf("return %s(&v)%s\n", esym.go2py, esym.go2pyParenEx) } else { g.gofile.Printf("return v\n") }