diff options
Diffstat (limited to 'libgo/go/big/rat.go')
-rw-r--r-- | libgo/go/big/rat.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libgo/go/big/rat.go b/libgo/go/big/rat.go index 40c6ef5bd6a..e70673a1cba 100644 --- a/libgo/go/big/rat.go +++ b/libgo/go/big/rat.go @@ -35,9 +35,8 @@ func (z *Rat) SetFrac(a, b *Int) *Rat { func (z *Rat) SetFrac64(a, b int64) *Rat { z.a.SetInt64(a) if b < 0 { - z.b.setUint64(uint64(-b)) + b = -b z.a.neg = !z.a.neg - return z.norm() } z.b = z.b.setUint64(uint64(b)) return z.norm() |