From: Christian Heimes Date: Fri, 18 Apr 2008 23:49:11 +0000 (+0000) Subject: Stupid me. Py_RETURN_NAN should actually return something ... X-Git-Tag: v2.6a3~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c873550737cf191a64ea81e9eb50ee7355c7aec7;p=thirdparty%2FPython%2Fcpython.git Stupid me. Py_RETURN_NAN should actually return something ... --- diff --git a/Include/floatobject.h b/Include/floatobject.h index 91814f2a6ed2..84398c251ff1 100644 --- a/Include/floatobject.h +++ b/Include/floatobject.h @@ -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 \