aboutsummaryrefslogtreecommitdiff
path: root/internal/compress/zlib/reader_reset.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/compress/zlib/reader_reset.go')
-rw-r--r--internal/compress/zlib/reader_reset.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/compress/zlib/reader_reset.go b/internal/compress/zlib/reader_reset.go
index 3e78ab5d..fbcaccac 100644
--- a/internal/compress/zlib/reader_reset.go
+++ b/internal/compress/zlib/reader_reset.go
@@ -30,6 +30,7 @@ func (z *Reader) reset(r io.Reader, dict []byte) error {
// Read the header (RFC 1950 section 2.2.).
readN, err := io.ReadFull(z.r, z.scratch[0:2])
+
readNUint64, convErr := intconv.IntToUint64(readN)
if convErr != nil {
z.err = convErr