Adds reference in gen_map elem fn

This commit is contained in:
Evan Oman 2024-04-13 21:43:18 -05:00
parent d520eb60fa
commit 7e6f349c44
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}