Silence a compiler warning

This commit is contained in:
Christian Heimes 2008-05-06 23:15:46 +00:00
parent 2ef32f24c8
commit 5fdea68107

View file

@ -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) {