mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix compile error under MSVC introduced by r88460.
This commit is contained in:
parent
c97c73761b
commit
4709ec0686
1 changed files with 2 additions and 2 deletions
|
@ -945,7 +945,7 @@ PyZlib_adler32(PyObject *self, PyObject *args)
|
|||
/* Releasing the GIL for very small buffers is inefficient
|
||||
and may lower performance */
|
||||
if (pbuf.len > 1024*5) {
|
||||
void *buf = pbuf.buf;
|
||||
unsigned char *buf = pbuf.buf;
|
||||
Py_ssize_t len = pbuf.len;
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
|
@ -983,7 +983,7 @@ PyZlib_crc32(PyObject *self, PyObject *args)
|
|||
/* Releasing the GIL for very small buffers is inefficient
|
||||
and may lower performance */
|
||||
if (pbuf.len > 1024*5) {
|
||||
void *buf = pbuf.buf;
|
||||
unsigned char *buf = pbuf.buf;
|
||||
Py_ssize_t len = pbuf.len;
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue