Issue #22883: Update PyInt to PyLong in C API example.
This commit is contained in:
parent
54237f9fea
commit
df0db49b1b
|
@ -1205,7 +1205,7 @@ Here is an example::
|
|||
{
|
||||
if (strcmp(name, "data") == 0)
|
||||
{
|
||||
return PyInt_FromLong(obj->data);
|
||||
return PyLong_FromLong(obj->data);
|
||||
}
|
||||
|
||||
PyErr_Format(PyExc_AttributeError,
|
||||
|
|
Loading…
Reference in New Issue