]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/binary: fix 32-bit build
authorRob Pike <r@golang.org>
Fri, 9 Aug 2013 13:23:34 +0000 (23:23 +1000)
committerRob Pike <r@golang.org>
Fri, 9 Aug 2013 13:23:34 +0000 (23:23 +1000)
Sigh.

R=golang-dev
CC=golang-dev
https://golang.org/cl/12491045

src/pkg/encoding/binary/binary_test.go

index 083488adad5a3e00d8d7bf890facda2f5d7dae7d..fdfee7d871148e5f00132d8322c5a2b38015afdd 100644 (file)
@@ -164,9 +164,9 @@ func TestSliceRoundTrip(t *testing.T) {
                }
                for i := 0; i < src.Len(); i++ {
                        if unsigned {
-                               src.Index(i).SetUint(uint64(i * 0x87654321))
+                               src.Index(i).SetUint(uint64(i * 0x07654321))
                        } else {
-                               src.Index(i).SetInt(int64(i * 0x87654321))
+                               src.Index(i).SetInt(int64(i * 0x07654321))
                        }
                }
                buf.Reset()