From: Rui Ueyama Date: Thu, 31 Jul 2014 20:54:42 +0000 (-0700) Subject: strconv: remove needless cast X-Git-Tag: go1.4beta1~971 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5a3336096f19c7c813305f548e054b86391874ff;p=gostls13.git strconv: remove needless cast LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/119340043 --- diff --git a/src/pkg/strconv/atoi.go b/src/pkg/strconv/atoi.go index cbf0380ec8..9ecec5a58b 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