]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: allow large shifts of constants
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 19 Jul 2016 00:05:54 +0000 (17:05 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 18 Aug 2016 23:39:37 +0000 (23:39 +0000)
commit794442375d87e57d012bab2d7424575f6cdff018
tree1bc0c8d2be839c1a7dc5cd69b3f440c29e81ece2
parent4e79c152b1625857f9b8cdcde59fcf44dc11e95a
cmd/vet: allow large shifts of constants

Large shifts of constants are frequently
used for fancy 32/64 bit detection.

This removes 14 false positives from the
standard library.

Updates #11041

Change-Id: Ib39346e5c161da04c38a6a3067932ef43bf74f2d
Reviewed-on: https://go-review.googlesource.com/27155
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/vet/shift.go
src/cmd/vet/testdata/shift.go