mirror of https://github.com/python/cpython
replace calls to get the initial values with the raw constants.
This commit is contained in:
parent
79b4ba8fd7
commit
be446b4ab7
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue