diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/gzip.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py index 8e34ed2..6cb90ac6 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -19,6 +19,8 @@ def write32(output, value): output.write(struct.pack("<l", value)) def write32u(output, value): + if value < 0: + value = value + 0x100000000L output.write(struct.pack("<L", value)) def read32(input): |