From: Russ Cox Date: Sat, 1 May 2010 20:10:01 +0000 (-0700) Subject: gmp: fix bug in SetString X-Git-Tag: weekly.2010-05-04~25 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=97576673bd22ab77e9ca9f9bea27f91a895ca4a2;p=gostls13.git gmp: fix bug in SetString R=adg CC=golang-dev https://golang.org/cl/1004045 --- diff --git a/misc/cgo/gmp/gmp.go b/misc/cgo/gmp/gmp.go index 33c16de773..f7bbe9c514 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.