]> Cypherpunks repositories - gostls13.git/commitdiff
strconv: remove needless cast
authorRui Ueyama <ruiu@google.com>
Thu, 31 Jul 2014 20:54:42 +0000 (13:54 -0700)
committerRui Ueyama <ruiu@google.com>
Thu, 31 Jul 2014 20:54:42 +0000 (13:54 -0700)
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/119340043

src/pkg/strconv/atoi.go

index cbf0380ec829e5a9f13cef27d442a722dccee639..9ecec5a58b9303a9a05ff1b610e021c839862904 100644 (file)
@@ -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