@@ -813,7 +813,7 @@ static PyAsyncMethods gen_as_async = {
813
813
PyTypeObject PyGen_Type = {
814
814
PyVarObject_HEAD_INIT (& PyType_Type , 0 )
815
815
"generator" , /* tp_name */
816
- sizeof (PyGenObject ), /* tp_basicsize */
816
+ offsetof (PyGenObject , gi_iframe . localsplus ), /* tp_basicsize */
817
817
sizeof (PyObject * ), /* tp_itemsize */
818
818
/* methods */
819
819
(destructor )gen_dealloc , /* tp_dealloc */
@@ -1164,7 +1164,7 @@ static PyAsyncMethods coro_as_async = {
1164
1164
PyTypeObject PyCoro_Type = {
1165
1165
PyVarObject_HEAD_INIT (& PyType_Type , 0 )
1166
1166
"coroutine" , /* tp_name */
1167
- sizeof (PyCoroObject ), /* tp_basicsize */
1167
+ offsetof (PyCoroObject , cr_iframe . localsplus ), /* tp_basicsize */
1168
1168
sizeof (PyObject * ), /* tp_itemsize */
1169
1169
/* methods */
1170
1170
(destructor )gen_dealloc , /* tp_dealloc */
@@ -1579,7 +1579,7 @@ static PyAsyncMethods async_gen_as_async = {
1579
1579
PyTypeObject PyAsyncGen_Type = {
1580
1580
PyVarObject_HEAD_INIT (& PyType_Type , 0 )
1581
1581
"async_generator" , /* tp_name */
1582
- sizeof (PyAsyncGenObject ), /* tp_basicsize */
1582
+ offsetof (PyAsyncGenObject , ag_iframe . localsplus ), /* tp_basicsize */
1583
1583
sizeof (PyObject * ), /* tp_itemsize */
1584
1584
/* methods */
1585
1585
(destructor )gen_dealloc , /* tp_dealloc */
0 commit comments