mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #22883: Update PyInt to PyLong in C API example.
This commit is contained in:
commit
8391b728e9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue