mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
replace calls to get the initial values with the raw constants.
This commit is contained in:
parent
79b4ba8fd7
commit
be446b4ab7
1 changed files with 2 additions and 2 deletions
|
|
@ -889,7 +889,7 @@ PyDoc_STRVAR(adler32__doc__,
|
||||||
static PyObject *
|
static PyObject *
|
||||||
PyZlib_adler32(PyObject *self, PyObject *args)
|
PyZlib_adler32(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
uLong adler32val = adler32(0L, Z_NULL, 0);
|
uLong adler32val = 1; /* adler32(0L, Z_NULL, 0) */
|
||||||
Byte *buf;
|
Byte *buf;
|
||||||
int len, signed_val;
|
int len, signed_val;
|
||||||
|
|
||||||
|
|
@ -912,7 +912,7 @@ PyDoc_STRVAR(crc32__doc__,
|
||||||
static PyObject *
|
static PyObject *
|
||||||
PyZlib_crc32(PyObject *self, PyObject *args)
|
PyZlib_crc32(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
uLong crc32val = crc32(0L, Z_NULL, 0);
|
uLong crc32val = 0; /* crc32(0L, Z_NULL, 0) */
|
||||||
Byte *buf;
|
Byte *buf;
|
||||||
int len, signed_val;
|
int len, signed_val;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue