summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2014-02-11 16:27:14 +1100
committerAndrew Gerrand <adg@golang.org>2014-02-11 16:27:14 +1100
commitda6951df3c75914d4c0febdd41cc94d25ba856de (patch)
tree759432be395ea06b88edb2086a7a915704097e84
parent6e69af14bf27a810f4b4e863f53ae8a7f41414be (diff)
downloadgo-da6951df3c75914d4c0febdd41cc94d25ba856de.tar.gz
archive/zip: use correct test, fix 32-bit build
LGTM=dsymonds R=dsymonds CC=golang-codereviews https://codereview.appspot.com/61070047
-rw-r--r--src/pkg/archive/zip/reader_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/archive/zip/reader_test.go b/src/pkg/archive/zip/reader_test.go
index 971fbedb5..5652f3a50 100644
--- a/src/pkg/archive/zip/reader_test.go
+++ b/src/pkg/archive/zip/reader_test.go
@@ -371,11 +371,11 @@ func readTestFile(t *testing.T, zt ZipTest, ft ZipTestFile, f *File) {
}
r.Close()
- size := int(f.UncompressedSize)
- if size == 1<<32-1 {
- size = int(f.UncompressedSize64)
+ size := uint64(f.UncompressedSize)
+ if size == uint32max {
+ size = f.UncompressedSize64
}
- if g := b.Len(); g != size {
+ if g := uint64(b.Len()); g != size {
t.Errorf("%v: read %v bytes but f.UncompressedSize == %v", f.Name, g, size)
}