aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sqrt.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/sqrt.go')
-rw-r--r--src/runtime/sqrt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/sqrt.go b/src/runtime/sqrt.go
index 7452a61f3c..1b130e3b01 100644
--- a/src/runtime/sqrt.go
+++ b/src/runtime/sqrt.go
@@ -117,7 +117,7 @@ func sqrt(ix uint64) uint64 {
// normalize x
exp := int((ix >> float64Shift) & float64Mask)
if exp == 0 { // subnormal x
- for ix&1<<float64Shift == 0 {
+ for ix&(1<<float64Shift) == 0 {
ix <<= 1
exp--
}