Return True only if the long fits in a C long */
| 57 | #if defined(NPY_PY3K) |
| 58 | /* Return True only if the long fits in a C long */ |
| 59 | static inline int PyInt_Check(PyObject *op) { |
| 60 | int overflow = 0; |
| 61 | if (!PyLong_Check(op)) { |
| 62 | return 0; |
| 63 | } |
| 64 | PyLong_AsLongAndOverflow(op, &overflow); |
| 65 | return (overflow == 0); |
| 66 | } |
| 67 | |
| 68 | |
| 69 | #define PyInt_FromLong PyLong_FromLong |
nothing calls this directly
no outgoing calls
no test coverage detected