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
1 changed files with 1 additions and 1 deletions

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 {
return os.EINVAL
}
return z
return nil
}
// String returns the decimal representation of z.