Replace PyNumber_Int with PyNumber_Long. · pythoncapi/cpython@17c7cd8 · GitHub
Skip to content

Commit 17c7cd8

Browse files
committed
Replace PyNumber_Int with PyNumber_Long.
1 parent e4bc7f6 commit 17c7cd8

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Modules/_struct.c

Lines changed: 3 additions & 3 deletions

Modules/grpmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ grp_getgrgid(PyObject *self, PyObject *pyo_id)
9090
unsigned int gid;
9191
struct group *p;
9292

93-
py_int_id = PyNumber_Int(pyo_id);
93+
py_int_id = PyNumber_Long(pyo_id);
9494
if (!py_int_id)
9595
return NULL;
9696
gid = PyLong_AS_LONG(py_int_id);

Modules/selectmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ poll_poll(pollObject *self, PyObject *args)
515515
return NULL;
516516
}
517517
else {
518-
tout = PyNumber_Int(tout);
518+
tout = PyNumber_Long(tout);
519519
if (!tout)
520520
return NULL;
521521
timeout = PyLong_AsLong(tout);

Objects/weakrefobject.c

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)