Commit 11043f41 authored by Xavier Thompson's avatar Xavier Thompson

Introduce __Pyx_SET_TYPE macro

This completes __Pyx_SET_REFCNT and __Pyx_SET_SIZE.
See https://bugs.python.org/issue39573
parent ec6d5005
......@@ -832,9 +832,11 @@ static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict,
#if PY_VERSION_HEX >= 0x030900A4
#define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
#define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
#define __Pyx_SET_TYPE(obj, type) Py_SET_TYPE(obj, type)
#else
#define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
#define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
#define __Pyx_SET_TYPE(obj, type) Py_TYPE(obj) = (type)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment