mirror of
https://github.com/golang/go
synced 2024-11-21 20:44:39 -07:00
gmp: fix bug in SetString
R=adg CC=golang-dev https://golang.org/cl/1004045
This commit is contained in:
parent
cf0e224380
commit
97576673bd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user