summaryrefslogtreecommitdiff
path: root/misc/cgo
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-05-01 13:10:01 -0700
committerRuss Cox <rsc@golang.org>2010-05-01 13:10:01 -0700
commit93076f9a25e6470ea07d6459abd122c60398a1ec (patch)
tree9751c19e85f9895e93038987cb8e00a23fe0d252 /misc/cgo
parent3696f3a6f5e76706405160ea1f6495c4e252ea78 (diff)
downloadgolang-93076f9a25e6470ea07d6459abd122c60398a1ec.tar.gz
gmp: fix bug in SetString
R=adg CC=golang-dev http://codereview.appspot.com/1004045
Diffstat (limited to 'misc/cgo')
-rw-r--r--misc/cgo/gmp/gmp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/gmp/gmp.go b/misc/cgo/gmp/gmp.go
index 33c16de77..f7bbe9c51 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.