summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index e7fc6dd..731b1d9 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -266,7 +266,7 @@ math_log(PyObject *self, PyObject *args)
return NULL;
}
- ans = PyNumber_Divide(num, den);
+ ans = PyNumber_TrueDivide(num, den);
Py_DECREF(num);
Py_DECREF(den);
return ans;