Fix compile error under MSVC introduced by r88460.

This commit is contained in:
Antoine Pitrou 2011-02-21 19:28:40 +00:00
parent c97c73761b
commit 4709ec0686

View file

@ -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