From: Antoine Pitrou Date: Mon, 21 Feb 2011 19:28:40 +0000 (+0000) Subject: Fix compile error under MSVC introduced by r88460. X-Git-Tag: v3.3.0a1~3141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4709ec0686ba85466a293b85a243979882696240;p=python Fix compile error under MSVC introduced by r88460. --- diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 0189e77548..206ef0c6d8 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