summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index 864df23..edf5e9b 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -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