From 543cabc84290972872f596c5c5a6660ad8aade15 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 25 Jan 2008 14:54:23 +0000 Subject: setup.py doesn't pick up changes to a header file --- Modules/mathmodule.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 0440871..6469bde 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -240,11 +240,11 @@ loghelper(PyObject* arg, double (*func)(double), char *funcname) "math domain error"); return NULL; } - /* Value is ~= x * 2**(e*SHIFT), so the log ~= - log(x) + log(2) * e * SHIFT. - CAUTION: e*SHIFT may overflow using int arithmetic, + /* Value is ~= x * 2**(e*PyLong_SHIFT), so the log ~= + log(x) + log(2) * e * PyLong_SHIFT. + CAUTION: e*PyLong_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); } -- cgit v0.12