Commit 4709ec06 authored by Antoine Pitrou's avatar Antoine Pitrou

Fix compile error under MSVC introduced by r88460.

parent c97c7376
...@@ -945,7 +945,7 @@ PyZlib_adler32(PyObject *self, PyObject *args) ...@@ -945,7 +945,7 @@ PyZlib_adler32(PyObject *self, PyObject *args)
/* Releasing the GIL for very small buffers is inefficient /* Releasing the GIL for very small buffers is inefficient
and may lower performance */ and may lower performance */
if (pbuf.len > 1024*5) { if (pbuf.len > 1024*5) {
void *buf = pbuf.buf; unsigned char *buf = pbuf.buf;
Py_ssize_t len = pbuf.len; Py_ssize_t len = pbuf.len;
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
...@@ -983,7 +983,7 @@ PyZlib_crc32(PyObject *self, PyObject *args) ...@@ -983,7 +983,7 @@ PyZlib_crc32(PyObject *self, PyObject *args)
/* Releasing the GIL for very small buffers is inefficient /* Releasing the GIL for very small buffers is inefficient
and may lower performance */ and may lower performance */
if (pbuf.len > 1024*5) { if (pbuf.len > 1024*5) {
void *buf = pbuf.buf; unsigned char *buf = pbuf.buf;
Py_ssize_t len = pbuf.len; Py_ssize_t len = pbuf.len;
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment