| 1698 | } |
| 1699 | |
| 1700 | static inline int PyLong_AsInt64(PyObject *obj, int64_t *pvalue) |
| 1701 | { |
| 1702 | Py_BUILD_ASSERT(sizeof(long long) == 8); |
| 1703 | long long value = PyLong_AsLongLong(obj); |
| 1704 | if (value == -1 && PyErr_Occurred()) { |
| 1705 | return -1; |
| 1706 | } |
| 1707 | *pvalue = (int64_t)value; |
| 1708 | return 0; |
| 1709 | } |
| 1710 | |
| 1711 | static inline int PyLong_AsUInt32(PyObject *obj, uint32_t *pvalue) |
| 1712 | { |
nothing calls this directly
no outgoing calls
no test coverage detected