]> granicus.if.org Git - python/commitdiff
Fix compile error under MSVC introduced by r88460.
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 21 Feb 2011 19:28:40 +0000 (19:28 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 21 Feb 2011 19:28:40 +0000 (19:28 +0000)
Modules/zlibmodule.c

index 0189e77548d5b53fea77bc1be91c94faef011e22..206ef0c6d8c172fea7659d0692535fde069d201c 100644 (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