From 6b8ec5c57216d94a8bcf1179574785122a9af88d Mon Sep 17 00:00:00 2001 From: Christian Himpel Date: Wed, 4 Aug 2010 17:15:04 -0700 Subject: [PATCH] cgo: generate correct multiple return value function invocations Fixes #967. R=rsc CC=golang-dev https://golang.org/cl/1855051 --- src/cmd/cgo/gcc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/cgo/gcc.go b/src/cmd/cgo/gcc.go index 6cfd4d4646f..3f62c4d6954 100644 --- a/src/cmd/cgo/gcc.go +++ b/src/cmd/cgo/gcc.go @@ -419,8 +419,8 @@ func (p *Package) rewriteRef(f *File) { n.AddError = true n.Mangle = "_C2func_" + n.Go f.Name["2"+r.Name.Go] = n - expr = ast.NewIdent(n.Mangle) } + expr = ast.NewIdent(n.Mangle) r.Name = n break }