From: Christian Heimes Date: Fri, 25 Jan 2008 14:54:23 +0000 (+0000) Subject: setup.py doesn't pick up changes to a header file X-Git-Tag: v2.6a1~410 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=543cabc84290972872f596c5c5a6660ad8aade15;p=thirdparty%2FPython%2Fcpython.git setup.py doesn't pick up changes to a header file --- diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 04408715ce38..6469bde649ee 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); }