replace calls to get the initial values with the raw constants.

This commit is contained in:
Gregory P. Smith 2008-03-23 22:14:38 +00:00
parent 79b4ba8fd7
commit be446b4ab7
1 changed files with 2 additions and 2 deletions

View 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;