Skip to content

Commit c873550

Browse files
committed
Stupid me. Py_RETURN_NAN should actually return something ...
1 parent 81ad6a1 commit c873550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/floatobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ PyAPI_DATA(PyTypeObject) PyFloat_Type;
2222
#define PyFloat_CheckExact(op) (Py_TYPE(op) == &PyFloat_Type)
2323

2424
#ifdef Py_NAN
25-
#define Py_RETURN_NAN PyFloat_FromDouble(Py_NAN)
25+
#define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN)
2626
#endif
2727

2828
#define Py_RETURN_INF(sign) do \

0 commit comments

Comments
 (0)