From: Gregory P. Smith Date: Sun, 23 Mar 2008 22:14:38 +0000 (+0000) Subject: replace calls to get the initial values with the raw constants. X-Git-Tag: v2.6a2~144 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be446b4ab7f3040d9e0854119d2d44cd39a48d9e;p=python replace calls to get the initial values with the raw constants. --- diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 384399d7c4..7637deb73c 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -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;