summaryrefslogtreecommitdiff
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 632dffd2f1..3d5640cf14 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -229,7 +229,7 @@ loghelper(PyObject* arg, double (*func)(double), char *funcname)
log(x) + log(2) * e * SHIFT.
CAUTION: e*SHIFT may overflow using int arithmetic,
so force use of double. */
- x = func(x) + (e * (double)SHIFT) * func(2.0);
+ x = func(x) + (e * (double)PyLong_SHIFT) * func(2.0);
return PyFloat_FromDouble(x);
}