1
0
mirror of https://github.com/golang/go synced 2024-11-24 22:27:57 -07:00

sort: fix 32-bit build

TBR=golang-dev
CC=golang-dev
https://golang.org/cl/10856043
This commit is contained in:
Russ Cox 2013-07-01 21:44:14 -04:00
parent 0286b4738e
commit 6d2d4ba94f

View File

@ -504,7 +504,7 @@ func countOps(t *testing.T, algo func(Interface), name string) {
desc: name,
t: t,
data: make([]int, n),
maxswap: 1 << 31,
maxswap: 1<<31 - 1,
}
for i := 0; i < n; i++ {
td.data[i] = rand.Intn(n / 5)