Skip to content

Commit 92315c1

Browse files
committed
Correct operator precedence for MAX_N calc
1 parent d1b541b commit 92315c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/zipfile/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ class ZipExtFile(io.BufferedIOBase):
950950
"""
951951

952952
# Max size supported by decompressor.
953-
MAX_N = 1 << 31 - 1
953+
MAX_N = (1 << 31) - 1
954954

955955
# Read from compressed files in 4k blocks.
956956
MIN_READ_SIZE = 4096

0 commit comments

Comments
 (0)