Commit 97576673 authored by Russ Cox's avatar Russ Cox

gmp: fix bug in SetString

R=adg
CC=golang-dev
https://golang.org/cl/1004045
parent cf0e2243
...@@ -190,7 +190,7 @@ func (z *Int) SetString(s string, base int) os.Error { ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment