From 4709ec0686ba85466a293b85a243979882696240 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 21 Feb 2011 19:28:40 +0000 Subject: Fix compile error under MSVC introduced by r88460. --- Modules/zlibmodule.c | 4 ++-- 1 file 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 -- cgit v0.12