1
0
mirror of https://github.com/golang/go synced 2024-11-21 19:14:44 -07:00

gmp: fix bug in SetString

R=adg
CC=golang-dev
https://golang.org/cl/1004045
This commit is contained in:
Russ Cox 2010-05-01 13:10:01 -07:00
parent cf0e224380
commit 97576673bd

View File

@ -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 { if C.mpz_set_str(&z.i[0], p, C.int(base)) < 0 {
return os.EINVAL return os.EINVAL
} }
return z return nil
} }
// String returns the decimal representation of z. // String returns the decimal representation of z.