diff options
author | Austin Clements <aclements@csail.mit.edu> | 2009-09-25 09:37:35 -0700 |
---|---|---|
committer | Austin Clements <aclements@csail.mit.edu> | 2009-09-25 09:37:35 -0700 |
commit | 4b52a8cfda843a0a2ae905e5cc3a140a85e69e8f (patch) | |
tree | 61758c52fa8e12d847b1ef57688df6f8788c96a8 /usr/austin/eval/expr.go | |
parent | cac20abe7d91d9dbd111ca71a82c32a8b7a1068e (diff) | |
download | golang-4b52a8cfda843a0a2ae905e5cc3a140a85e69e8f.tar.gz |
s/switch _ :=/switch/
R=rsc
APPROVED=rsc
DELTA=36 (0 added, 0 deleted, 36 changed)
OCL=34971
CL=35006
Diffstat (limited to 'usr/austin/eval/expr.go')
-rw-r--r-- | usr/austin/eval/expr.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/austin/eval/expr.go b/usr/austin/eval/expr.go index 5c4e79249..e8ca93314 100644 --- a/usr/austin/eval/expr.go +++ b/usr/austin/eval/expr.go @@ -153,7 +153,7 @@ func (a *expr) convertTo(t Type) *expr { // exceeds max. If negErr is not "", produces an error if possible if // the value is negative. func (a *expr) convertToInt(max int64, negErr string, errOp string) *expr { - switch _ := a.t.lit().(type) { + switch a.t.lit().(type) { case *idealIntType: val := a.asIdealInt()(); if negErr != "" && val.IsNeg() { @@ -1773,7 +1773,7 @@ func (a *compiler) compileArrayLen(b *block, expr ast.Expr) (int64, bool) { return 0, false; } - switch _ := lenExpr.t.lit().(type) { + switch lenExpr.t.lit().(type) { case *intType: return lenExpr.asInt()(nil), true; case *uintType: |