| 1551 | } |
| 1552 | |
| 1553 | static inline int PyLong_IsNegative(PyObject *obj) |
| 1554 | { |
| 1555 | if (!PyLong_Check(obj)) { |
| 1556 | PyErr_Format(PyExc_TypeError, "expected int, got %s", Py_TYPE(obj)->tp_name); |
| 1557 | return -1; |
| 1558 | } |
| 1559 | return _PyLong_Sign(obj) == -1; |
| 1560 | } |
| 1561 | |
| 1562 | static inline int PyLong_IsZero(PyObject *obj) |
| 1563 | { |
nothing calls this directly
no outgoing calls
no test coverage detected