summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-05-29 19:18:12 (GMT)
committerThomas Heller <theller@ctypes.org>2008-05-29 19:18:12 (GMT)
commita52b244cc10a7644d86c4f09b761b3611a65378d (patch)
tree384920f6d68154d245f7caf5aed8f84fc7b85c75 /Modules/_ctypes
parent4f1b1ed975fe25170d00559e63f992c9bf8e9b8a (diff)
downloadcpython-a52b244cc10a7644d86c4f09b761b3611a65378d.zip
cpython-a52b244cc10a7644d86c4f09b761b3611a65378d.tar.gz
cpython-a52b244cc10a7644d86c4f09b761b3611a65378d.tar.bz2
Fix compiler warning.
Diffstat (limited to 'Modules/_ctypes')
-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 cce986d..5b2a054 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -477,7 +477,7 @@ GenericCData_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
static PyObject *
CDataType_from_buffer_copy(PyObject *type, PyObject *args)
{
- void *buffer;
+ const void *buffer;
Py_ssize_t buffer_len;
Py_ssize_t offset = 0;
PyObject *obj, *result;