]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
setup.py doesn't pick up changes to a header file
authorChristian Heimes <christian@cheimes.de>
Fri, 25 Jan 2008 14:54:23 +0000 (14:54 +0000)
committerChristian Heimes <christian@cheimes.de>
Fri, 25 Jan 2008 14:54:23 +0000 (14:54 +0000)
Modules/mathmodule.c

index 04408715ce38cd409cacd7c7a6d9f0bd4f4cf4f5..6469bde649eeacd68b027a899ca4f7caeb0f86a5 100644 (file)
@@ -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);
        }