[Python-checkins] r60419 - python/branches/trunk-math/Modules/mathmodule.c
christian.heimes
python-checkins at python.org
Tue Jan 29 17:59:29 CET 2008
Author: christian.heimes
Date: Tue Jan 29 17:59:29 2008
New Revision: 60419
Modified:
python/branches/trunk-math/Modules/mathmodule.c
Log:
Indeed, the two lines are required on Windows.
Modified: python/branches/trunk-math/Modules/mathmodule.c
==============================================================================
--- python/branches/trunk-math/Modules/mathmodule.c (original)
+++ python/branches/trunk-math/Modules/mathmodule.c Tue Jan 29 17:59:29 2008
@@ -437,11 +437,9 @@
y = PyFloat_AsDouble(oy);
if ((x == -1.0 || y == -1.0) && PyErr_Occurred())
return NULL;
- /* 1**x and x**0 return 1., even if x is a NaN or infinity.
- It may be necessary to uncomment the following two lines on
- Windows.
+ /* 1**x and x**0 return 1., even if x is a NaN or infinity. */
if (x == 1.0 || y == 0.0)
- return PyFloat_FromDouble(1.); */
+ return PyFloat_FromDouble(1.);
errno = 0;
PyFPE_START_PROTECT("in math_pow", return 0);
r = pow(x, y);
More information about the Python-checkins
mailing list