diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2008-03-23 22:14:38 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2008-03-23 22:14:38 (GMT) |
commit | be446b4ab7f3040d9e0854119d2d44cd39a48d9e (patch) | |
tree | 6c8f1cc3f782820184a3c2307c086dcd98a32e80 /Modules | |
parent | 79b4ba8fd7228bc3c477a144ed3f8a93d7b4bb27 (diff) | |
download | cpython-be446b4ab7f3040d9e0854119d2d44cd39a48d9e.zip cpython-be446b4ab7f3040d9e0854119d2d44cd39a48d9e.tar.gz cpython-be446b4ab7f3040d9e0854119d2d44cd39a48d9e.tar.bz2 |
replace calls to get the initial values with the raw constants.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/zlibmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 384399d..7637deb 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; |