summaryrefslogtreecommitdiff
path: root/libgo/go/go/types/expr.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/go/types/expr.go')
-rw-r--r--libgo/go/go/types/expr.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/go/types/expr.go b/libgo/go/go/types/expr.go
index f7c4a173785..4430c45d140 100644
--- a/libgo/go/go/types/expr.go
+++ b/libgo/go/go/types/expr.go
@@ -660,10 +660,10 @@ func (check *Checker) shift(x, y *operand, e *ast.BinaryExpr, op token.Token) {
return
}
// rhs must be within reasonable bounds
- const stupidShift = 1023 - 1 + 52 // so we can express smallestFloat64
+ const shiftBound = 1023 - 1 + 52 // so we can express smallestFloat64
s, ok := constant.Uint64Val(yval)
- if !ok || s > stupidShift {
- check.invalidOp(y.pos(), "stupid shift count %s", y)
+ if !ok || s > shiftBound {
+ check.invalidOp(y.pos(), "invalid shift count %s", y)
x.mode = invalid
return
}