mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +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
|
|
@ -118,7 +118,7 @@ static PyObject * math_ceil(PyObject *self, PyObject *number) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
method = _PyType_Lookup(Py_Type(number), ceil_str);
|
||||
method = _PyType_Lookup(Py_TYPE(number), ceil_str);
|
||||
if (method == NULL)
|
||||
return math_1(number, ceil);
|
||||
else
|
||||
|
|
@ -148,7 +148,7 @@ static PyObject * math_floor(PyObject *self, PyObject *number) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
method = _PyType_Lookup(Py_Type(number), floor_str);
|
||||
method = _PyType_Lookup(Py_TYPE(number), floor_str);
|
||||
if (method == NULL)
|
||||
return math_1(number, floor);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue