diff Modules/mathmodule.c @ 44947:8e435bdd4bc8 legacy-trunk

setup.py doesn't pick up changes to a header file
author Christian Heimes <christian@cheimes.de>
date Fri, 25 Jan 2008 14:54:23 +0000
parents 12099143724f
children 492b302aded6
line wrap: on
line diff
--- a/Modules/mathmodule.c	Fri Jan 25 12:18:43 2008 +0000
+++ b/Modules/mathmodule.c	Fri Jan 25 14:54:23 2008 +0000
@@ -240,11 +240,11 @@
 					"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);
 	}