From 95bdd0b60466f38166e86b83d27ecff3df0352d5 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 12 Apr 1999 14:34:16 +0000 Subject: Two different changes. 1. Jack Jansen reports that on the Mac, the time may be negative, and solves this by adding a write32u() function that writes an unsigned long. 2. On 64-bit platforms the CRC comparison fails; I've fixed this by casting both values to be compared to "unsigned long" i.e. modulo 0x100000000L. --- Lib/gzip.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Lib/gzip.py') diff --git a/Lib/gzip.py b/Lib/gzip.py index 9efeaf0198..1c196a8ed9 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -17,6 +17,9 @@ READ, WRITE = 1, 2 def write32(output, value): output.write(struct.pack("