[Python-checkins] r88466 - python/branches/py3k/Modules/zlibmodule.c
antoine.pitrou
python-checkins at python.org
Mon Feb 21 20:28:41 CET 2011
Author: antoine.pitrou
Date: Mon Feb 21 20:28:40 2011
New Revision: 88466
Log:
Fix compile error under MSVC introduced by r88460.
Modified:
python/branches/py3k/Modules/zlibmodule.c
Modified: python/branches/py3k/Modules/zlibmodule.c
==============================================================================
--- python/branches/py3k/Modules/zlibmodule.c (original)
+++ python/branches/py3k/Modules/zlibmodule.c Mon Feb 21 20:28:40 2011
@@ -945,7 +945,7 @@
/* 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 @@
/* 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
More information about the Python-checkins
mailing list