mirror of
https://github.com/python/cpython.git
synced 2025-09-17 14:16:02 +00:00
Stupid me. Py_RETURN_NAN should actually return something ...
This commit is contained in:
parent
81ad6a185a
commit
c873550737
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ PyAPI_DATA(PyTypeObject) PyFloat_Type;
|
||||||
#define PyFloat_CheckExact(op) (Py_TYPE(op) == &PyFloat_Type)
|
#define PyFloat_CheckExact(op) (Py_TYPE(op) == &PyFloat_Type)
|
||||||
|
|
||||||
#ifdef Py_NAN
|
#ifdef Py_NAN
|
||||||
#define Py_RETURN_NAN PyFloat_FromDouble(Py_NAN)
|
#define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define Py_RETURN_INF(sign) do \
|
#define Py_RETURN_INF(sign) do \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue