Commit 016569f2 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

cmd/vet/all: move suspicious shift whitelists to 64 bit

This is an inconsequential consequence of updating
math/big to use math/bits.

Better would be to teach the vet shift test
to size int/uint/uintptr to the platform in use,
eliminating the whole category of "might be too small".
Filed #19321 for that.

Change-Id: I7e0b837bd329132d7a564468c18502dd2e724fc6
Reviewed-on: https://go-review.googlesource.com/37576
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 31f9769c
......@@ -11,3 +11,18 @@ runtime/hashmap.go: hash might be too small for shift of 56
runtime/hashmap.go: hash might be too small for shift of 56
runtime/hashmap_fast.go: hash might be too small for shift of 56
runtime/hashmap_fast.go: hash might be too small for shift of 56
math/big/arith.go: x might be too small for shift of 32
math/big/arith.go: y might be too small for shift of 32
math/big/arith.go: w0 might be too small for shift of 32
math/big/arith.go: t might be too small for shift of 32
math/big/arith.go: w1 might be too small for shift of 32
math/big/arith.go: v might be too small for shift of 32
math/big/arith.go: un10 might be too small for shift of 32
math/big/arith.go: (xi&yi | (xi|yi)&^zi) might be too small for shift of 63
math/big/arith.go: (yi&^xi | (yi|^xi)&zi) might be too small for shift of 63
math/big/arith.go: xi &^ zi might be too small for shift of 63
math/big/arith.go: (zi &^ xi) might be too small for shift of 63
math/big/nat.go: t too small for shift of 64
math/big/nat.go: x too small for shift of 64
math/big/nat.go: yi might be too small for shift of 60
math/big/nat.go: yi might be too small for shift of 60
......@@ -52,25 +52,8 @@ encoding/xml/read_test.go: method UnmarshalXML(d *Decoder, start StartElement) e
// Mostly code that uses clever const tricks to determine
// or use the size of an int or pointer (and related values).
image/png/paeth.go: x might be too small for shift of 63
math/big/arith.go: x might be too small for shift of 32
math/big/arith.go: y might be too small for shift of 32
math/big/arith.go: w0 might be too small for shift of 32
math/big/arith.go: t might be too small for shift of 32
math/big/arith.go: w1 might be too small for shift of 32
math/big/arith.go: v might be too small for shift of 32
math/big/arith.go: un10 might be too small for shift of 32
math/big/arith.go: (xi&yi | (xi|yi)&^zi) might be too small for shift of 63
math/big/arith.go: (yi&^xi | (yi|^xi)&zi) might be too small for shift of 63
math/big/arith.go: xi &^ zi might be too small for shift of 63
math/big/arith.go: (zi &^ xi) might be too small for shift of 63
math/big/float.go: x[i] might be too small for shift of 32
math/big/nat.go: t too small for shift of 64
math/big/nat.go: x too small for shift of 64
math/big/nat.go: ((x & -x) * (deBruijn64 & _M)) might be too small for shift of 58
math/big/nat.go: Word(rand.Uint32()) might be too small for shift of 32
math/big/nat.go: yi might be too small for shift of 60
math/big/nat.go: yi might be too small for shift of 60
runtime/cpuprof.go: h might be too small for shift of 56
runtime/malloc.go: uintptr(i) might be too small for shift of 40
runtime/malloc.go: uintptr(i) might be too small for shift of 40
runtime/malloc.go: uintptr(i) might be too small for shift of 40
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment