From 5fdea681074a2af6e1ddef9f911065dbcd42726e Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 6 May 2008 23:15:46 +0000 Subject: [PATCH] Silence a compiler warning --- Modules/_ctypes/_ctypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.40.0