]> granicus.if.org Git - python/commitdiff
replace calls to get the initial values with the raw constants.
authorGregory P. Smith <greg@mad-scientist.com>
Sun, 23 Mar 2008 22:14:38 +0000 (22:14 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sun, 23 Mar 2008 22:14:38 +0000 (22:14 +0000)
Modules/zlibmodule.c

index 384399d7c4cd4b807dc18b3ecfef1159a9638749..7637deb73c43ecb97d21eba6453a688fedd891c8 100644 (file)
@@ -889,7 +889,7 @@ PyDoc_STRVAR(adler32__doc__,
 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 @@ PyDoc_STRVAR(crc32__doc__,
 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;