| 1560 | } |
| 1561 | |
| 1562 | static inline int PyLong_IsZero(PyObject *obj) |
| 1563 | { |
| 1564 | if (!PyLong_Check(obj)) { |
| 1565 | PyErr_Format(PyExc_TypeError, "expected int, got %s", Py_TYPE(obj)->tp_name); |
| 1566 | return -1; |
| 1567 | } |
| 1568 | return _PyLong_Sign(obj) == 0; |
| 1569 | } |
| 1570 | #endif |
| 1571 | |
| 1572 |
nothing calls this directly
no outgoing calls
no test coverage detected