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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fdea681074a2af6e1ddef9f911065dbcd42726e;p=python Silence a compiler warning --- diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 79fc6c8c05..98c609c3b7 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) {