[Python-checkins] r61820 - python/trunk/Modules/zlibmodule.c

gregory.p.smith python-checkins at python.org
Sun Mar 23 23:14:38 CET 2008


Author: gregory.p.smith
Date: Sun Mar 23 23:14:38 2008
New Revision: 61820

Modified:
   python/trunk/Modules/zlibmodule.c
Log:
replace calls to get the initial values with the raw constants.


Modified: python/trunk/Modules/zlibmodule.c
==============================================================================
--- python/trunk/Modules/zlibmodule.c	(original)
+++ python/trunk/Modules/zlibmodule.c	Sun Mar 23 23:14:38 2008
@@ -889,7 +889,7 @@
 static PyObject *
 PyZlib_adler32(PyObject *self, PyObject *args)
 {
-    uLong adler32val = adler32(0L, Z_NULL, 0);
+    uLong adler32val = 1;  /* adler32(0L, Z_NULL, 0) */
     Byte *buf;
     int len, signed_val;
 
@@ -912,7 +912,7 @@
 static PyObject *
 PyZlib_crc32(PyObject *self, PyObject *args)
 {
-    uLong crc32val = crc32(0L, Z_NULL, 0);
+    uLong crc32val = 0;  /* crc32(0L, Z_NULL, 0) */
     Byte *buf;
     int len, signed_val;
 


More information about the Python-checkins mailing list