From 5a3336096f19c7c813305f548e054b86391874ff Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 31 Jul 2014 13:54:42 -0700 Subject: [PATCH] strconv: remove needless cast LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/119340043 --- src/pkg/strconv/atoi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/strconv/atoi.go b/src/pkg/strconv/atoi.go index cbf0380ec82..9ecec5a58b9 100644 --- a/src/pkg/strconv/atoi.go +++ b/src/pkg/strconv/atoi.go @@ -31,7 +31,7 @@ func rangeError(fn, str string) *NumError { return &NumError{fn, str, ErrRange} } -const intSize = 32 << uint(^uint(0)>>63) +const intSize = 32 << (^uint(0) >> 63) // IntSize is the size in bits of an int or uint value. const IntSize = intSize