From: Guido van Rossum Date: Mon, 12 Apr 1999 14:34:16 +0000 (+0000) Subject: Two different changes. X-Git-Tag: v1.5.2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95bdd0b60466f38166e86b83d27ecff3df0352d5;p=python 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. --- 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("