mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.
This commit is contained in:
parent
99170a5dbf
commit
90aa7646af
144 changed files with 1306 additions and 1153 deletions
|
|
@ -2706,7 +2706,7 @@ extract_time(PyObject *t, long* sec, long* usec)
|
|||
long intval;
|
||||
if (PyFloat_Check(t)) {
|
||||
double tval = PyFloat_AsDouble(t);
|
||||
PyObject *intobj = Py_Type(t)->tp_as_number->nb_int(t);
|
||||
PyObject *intobj = Py_TYPE(t)->tp_as_number->nb_int(t);
|
||||
if (!intobj)
|
||||
return -1;
|
||||
intval = PyLong_AsLong(intobj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue