Skip to content

Commit 74cbfd5

Browse files
author
christian.heimes
committed
Silence a compiler warning
git-svn-id: http://svn.python.org/projects/python/branches/py3k@62791 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 558a8cd commit 74cbfd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ CDataType_from_buffer_copy(PyObject *type, PyObject *args)
490490
&obj, &offset))
491491
return NULL;
492492

493-
if (-1 == PyObject_AsReadBuffer(obj, &buffer, &buffer_len))
493+
if (-1 == PyObject_AsReadBuffer(obj, (const void**)&buffer, &buffer_len))
494494
return NULL;
495495

496496
if (offset < 0) {

0 commit comments

Comments
 (0)