Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5fdea68

Browse files
committed
Silence a compiler warning
1 parent 2ef32f2 commit 5fdea68

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)