From: Christian Heimes Date: Tue, 6 May 2008 23:15:46 +0000 (+0000) Subject: Silence a compiler warning X-Git-Tag: v3.0a5~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fdea681074a2af6e1ddef9f911065dbcd42726e;p=thirdparty%2FPython%2Fcpython.git Silence a compiler warning --- diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 79fc6c8c05cf..98c609c3b786 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -490,7 +490,7 @@ CDataType_from_buffer_copy(PyObject *type, PyObject *args) &obj, &offset)) return NULL; - if (-1 == PyObject_AsReadBuffer(obj, &buffer, &buffer_len)) + if (-1 == PyObject_AsReadBuffer(obj, (const void**)&buffer, &buffer_len)) return NULL; if (offset < 0) {