summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-02-21 19:28:40 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-02-21 19:28:40 (GMT)
commit4709ec0686ba85466a293b85a243979882696240 (patch)
treed6034081e8978e397c2063c8c627b21a589752c6 /Modules
parentc97c73761b27799b3b5f673fa559a4d4b09df462 (diff)
downloadcpython-4709ec0686ba85466a293b85a243979882696240.zip
cpython-4709ec0686ba85466a293b85a243979882696240.tar.gz
cpython-4709ec0686ba85466a293b85a243979882696240.tar.bz2
Fix compile error under MSVC introduced by r88460.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/zlibmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index 0189e77..206ef0c 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -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