From 97576673bd22ab77e9ca9f9bea27f91a895ca4a2 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 1 May 2010 13:10:01 -0700 Subject: [PATCH] gmp: fix bug in SetString R=adg CC=golang-dev https://golang.org/cl/1004045 --- misc/cgo/gmp/gmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cgo/gmp/gmp.go b/misc/cgo/gmp/gmp.go index 33c16de7732..f7bbe9c5145 100644 --- a/misc/cgo/gmp/gmp.go +++ b/misc/cgo/gmp/gmp.go @@ -190,7 +190,7 @@ func (z *Int) SetString(s string, base int) os.Error { if C.mpz_set_str(&z.i[0], p, C.int(base)) < 0 { return os.EINVAL } - return z + return nil } // String returns the decimal representation of z.