]> Cypherpunks repositories - gostls13.git/commitdiff
sort: fix 32-bit build
authorRuss Cox <rsc@golang.org>
Tue, 2 Jul 2013 01:44:14 +0000 (21:44 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 2 Jul 2013 01:44:14 +0000 (21:44 -0400)
TBR=golang-dev
CC=golang-dev
https://golang.org/cl/10856043

src/pkg/sort/sort_test.go

index 2dd65c44366a40b11cd6b041de8cc6b9be2a61ee..fb872c2941d3a16f4fb1ece32cb7def14d23d260 100644 (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)