summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-05-06 23:15:46 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-05-06 23:15:46 (GMT)
commit5fdea681074a2af6e1ddef9f911065dbcd42726e (patch)
treeb902661bbc6b4cccd65480a74be418e3c6b26c0d /Modules
parent2ef32f24c8098c7a8ef6a93813ea6a9053ad86e6 (diff)
downloadcpython-5fdea681074a2af6e1ddef9f911065dbcd42726e.zip
cpython-5fdea681074a2af6e1ddef9f911065dbcd42726e.tar.gz
cpython-5fdea681074a2af6e1ddef9f911065dbcd42726e.tar.bz2
Silence a compiler warning
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 79fc6c8..98c609c 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) {