mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Silence a compiler warning
This commit is contained in:
parent
2ef32f24c8
commit
5fdea68107
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue