| 1687 | } |
| 1688 | |
| 1689 | static inline int PyLong_AsInt32(PyObject *obj, int32_t *pvalue) |
| 1690 | { |
| 1691 | Py_BUILD_ASSERT(sizeof(int) == 4); |
| 1692 | int value = PyLong_AsInt(obj); |
| 1693 | if (value == -1 && PyErr_Occurred()) { |
| 1694 | return -1; |
| 1695 | } |
| 1696 | *pvalue = (int32_t)value; |
| 1697 | return 0; |
| 1698 | } |
| 1699 | |
| 1700 | static inline int PyLong_AsInt64(PyObject *obj, int64_t *pvalue) |
| 1701 | { |
nothing calls this directly
no test coverage detected