diff options
Diffstat (limited to 'libgo/go/math/modf.go')
-rw-r--r-- | libgo/go/math/modf.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/math/modf.go b/libgo/go/math/modf.go index ae0c7c8..315174b 100644 --- a/libgo/go/math/modf.go +++ b/libgo/go/math/modf.go @@ -23,9 +23,9 @@ func Modf(f float64) (int float64, frac float64) { x := Float64bits(f) e := uint(x>>shift)&mask - bias - // Keep the top 11+e bits, the integer part; clear the rest. - if e < 64-11 { - x &^= 1<<(64-11-e) - 1 + // Keep the top 12+e bits, the integer part; clear the rest. + if e < 64-12 { + x &^= 1<<(64-12-e) - 1 } int = Float64frombits(x) frac = f - int |