[Python-checkins] r60834 - python/branches/trunk-math/Objects/floatobject.c
christian.heimes
python-checkins at python.org
Fri Feb 15 13:14:29 CET 2008
Author: christian.heimes
Date: Fri Feb 15 13:14:29 2008
New Revision: 60834
Modified:
python/branches/trunk-math/Objects/floatobject.c
Log:
Fix return
Modified: python/branches/trunk-math/Objects/floatobject.c
==============================================================================
--- python/branches/trunk-math/Objects/floatobject.c (original)
+++ python/branches/trunk-math/Objects/floatobject.c Fri Feb 15 13:14:29 2008
@@ -1140,7 +1140,7 @@
return NULL;
if (!Py_IS_FINITE(x))
Py_RETURN_FALSE;
- PyFPE_START_PROTECT("is_integer", return 0)
+ PyFPE_START_PROTECT("is_integer", return NULL)
o = (floor(x) == x) ? Py_True : Py_False;
PyFPE_END_PROTECT(x)
if (errno != 0) {
More information about the Python-checkins
mailing list