Commit 32e305ae authored by Lisandro Dalcin's avatar Lisandro Dalcin

CyFunction: Fix use of `offsetof()` to silence clang -Wextended-offsetof

parent 4f636ed6
...@@ -414,7 +414,7 @@ static PyGetSetDef __pyx_CyFunction_getsets[] = { ...@@ -414,7 +414,7 @@ static PyGetSetDef __pyx_CyFunction_getsets[] = {
}; };
static PyMemberDef __pyx_CyFunction_members[] = { static PyMemberDef __pyx_CyFunction_members[] = {
{(char *) "__module__", T_OBJECT, offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED, 0}, {(char *) "__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), PY_WRITE_RESTRICTED, 0},
{0, 0, 0, 0, 0} {0, 0, 0, 0, 0}
}; };
......
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