mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45: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))
|
&obj, &offset))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (-1 == PyObject_AsReadBuffer(obj, &buffer, &buffer_len))
|
if (-1 == PyObject_AsReadBuffer(obj, (const void**)&buffer, &buffer_len))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (offset < 0) {
|
if (offset < 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue