MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / PyLong_AsInt64

Function PyLong_AsInt64

asyncpg/protocol/record/pythoncapi_compat.h:1700–1709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1698}
1699
1700static 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
1711static inline int PyLong_AsUInt32(PyObject *obj, uint32_t *pvalue)
1712{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected