Skip to content

Commit 7e6f349

Browse files
committed
Adds reference in gen_map elem fn
1 parent d520eb6 commit 7e6f349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bind/gen_map.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ otherwise parameter is a python list that we copy from
303303
g.gofile.Outdent()
304304
g.gofile.Printf("}\n")
305305
if esym.go2py != "" {
306-
g.gofile.Printf("return %s(v)%s\n", esym.go2py, esym.go2pyParenEx)
306+
g.gofile.Printf("return %s(&v)%s\n", esym.go2py, esym.go2pyParenEx)
307307
} else {
308308
g.gofile.Printf("return v\n")
309309
}

0 commit comments

Comments
 (0)