From: Thomas Heller Date: Thu, 29 May 2008 19:18:12 +0000 (+0000) Subject: Fix compiler warning. X-Git-Tag: v2.6b1~205 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a52b244cc10a7644d86c4f09b761b3611a65378d;p=python Fix compiler warning. --- diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index cce986d1b3..5b2a0546e4 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;