aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/math/sqrt.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/sqrt.go')
-rw-r--r--libgo/go/math/sqrt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/math/sqrt.go b/libgo/go/math/sqrt.go
index 215d6485442..86c04523478 100644
--- a/libgo/go/math/sqrt.go
+++ b/libgo/go/math/sqrt.go
@@ -114,7 +114,7 @@ func sqrt(x float64) float64 {
// normalize x
exp := int((ix >> shift) & mask)
if exp == 0 { // subnormal x
- for ix&1<<shift == 0 {
+ for ix&(1<<shift) == 0 {
ix <<= 1
exp--
}