]> Cypherpunks repositories - gostls13.git/commitdiff
archive/zip: makes receiver name consistent
authorSanthosh Kumar Tekuri <santhosh.tekuri@gmail.com>
Fri, 22 Jun 2018 11:20:31 +0000 (16:50 +0530)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 20 Aug 2018 23:12:45 +0000 (23:12 +0000)
Change-Id: I4d6f7440747d4f935acddc9a5c5928ed911a2fb0
Reviewed-on: https://go-review.googlesource.com/120515
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/archive/zip/struct.go

index c90151d9d44bb1a09b7cede7dd7c3812d69ce54a..bd637d185b743c2f75a2e561eeb4854ca2d12abb 100644 (file)
@@ -303,8 +303,8 @@ func (h *FileHeader) SetMode(mode os.FileMode) {
 }
 
 // isZip64 reports whether the file size exceeds the 32 bit limit
-func (fh *FileHeader) isZip64() bool {
-       return fh.CompressedSize64 >= uint32max || fh.UncompressedSize64 >= uint32max
+func (h *FileHeader) isZip64() bool {
+       return h.CompressedSize64 >= uint32max || h.UncompressedSize64 >= uint32max
 }
 
 func msdosModeToFileMode(m uint32) (mode os.FileMode) {