]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Stupid me. Py_RETURN_NAN should actually return something ...
authorChristian Heimes <christian@cheimes.de>
Fri, 18 Apr 2008 23:49:11 +0000 (23:49 +0000)
committerChristian Heimes <christian@cheimes.de>
Fri, 18 Apr 2008 23:49:11 +0000 (23:49 +0000)
Include/floatobject.h

index 91814f2a6ed281282701b9bd1bfad799393c545f..84398c251ff1aeb296e9ecf907b89664ce532e02 100644 (file)
@@ -22,7 +22,7 @@ PyAPI_DATA(PyTypeObject) PyFloat_Type;
 #define PyFloat_CheckExact(op) (Py_TYPE(op) == &PyFloat_Type)
 
 #ifdef Py_NAN
-#define Py_RETURN_NAN PyFloat_FromDouble(Py_NAN)
+#define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN)
 #endif
 
 #define Py_RETURN_INF(sign) do                                 \