From be446b4ab7f3040d9e0854119d2d44cd39a48d9e Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sun, 23 Mar 2008 22:14:38 +0000 Subject: [PATCH] replace calls to get the initial values with the raw constants. --- Modules/zlibmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.40.0