[Python-checkins] r60219 - python/branches/trunk-math/Objects/floatobject.c
christian.heimes
python-checkins at python.org
Wed Jan 23 17:49:01 CET 2008
Author: christian.heimes
Date: Wed Jan 23 17:49:01 2008
New Revision: 60219
Modified:
python/branches/trunk-math/Objects/floatobject.c
Log:
Moved the check for 1.0 to the right place.
Modified: python/branches/trunk-math/Objects/floatobject.c
==============================================================================
--- python/branches/trunk-math/Objects/floatobject.c (original)
+++ python/branches/trunk-math/Objects/floatobject.c Wed Jan 23 17:49:01 2008
@@ -1029,10 +1029,10 @@
return NULL;
}
return PyFloat_FromDouble(0.0);
+ }
if (iv == 1.0) { /* 1**w is 1, even 1**inf and 1**nan */
return PyFloat_FromDouble(1.0);
}
- }
if (iv < 0.0) {
/* Whether this is an error is a mess, and bumps into libm
* bugs so we have to figure it out ourselves.
More information about the Python-checkins
mailing list