@@ -324,7 +324,7 @@ get_event_loop(asyncio_state *state)
324324 PyObject * loop ;
325325 PyObject * policy ;
326326
327- PyThreadState * ts = _PyThreadState_GET ();
327+ _PyThreadStateImpl * ts = ( _PyThreadStateImpl * ) _PyThreadState_GET ();
328328 loop = Py_XNewRef (ts -> asyncio_running_loop );
329329
330330 if (loop != NULL ) {
@@ -3278,7 +3278,7 @@ static PyObject *
32783278_asyncio__get_running_loop_impl (PyObject * module )
32793279/*[clinic end generated code: output=b4390af721411a0a input=0a21627e25a4bd43]*/
32803280{
3281- PyThreadState * ts = _PyThreadState_GET ();
3281+ _PyThreadStateImpl * ts = ( _PyThreadStateImpl * ) _PyThreadState_GET ();
32823282 PyObject * loop = Py_XNewRef (ts -> asyncio_running_loop );
32833283 if (loop == NULL ) {
32843284 /* There's no currently running event loop */
@@ -3302,7 +3302,7 @@ static PyObject *
33023302_asyncio__set_running_loop (PyObject * module , PyObject * loop )
33033303/*[clinic end generated code: output=ae56bf7a28ca189a input=4c9720233d606604]*/
33043304{
3305- PyThreadState * ts = _PyThreadState_GET ();
3305+ _PyThreadStateImpl * ts = ( _PyThreadStateImpl * ) _PyThreadState_GET ();
33063306 if (loop == Py_None ) {
33073307 loop = NULL ;
33083308 }
@@ -3344,7 +3344,7 @@ _asyncio_get_running_loop_impl(PyObject *module)
33443344/*[clinic end generated code: output=c247b5f9e529530e input=2a3bf02ba39f173d]*/
33453345{
33463346 PyObject * loop ;
3347- PyThreadState * ts = _PyThreadState_GET ();
3347+ _PyThreadStateImpl * ts = ( _PyThreadStateImpl * ) _PyThreadState_GET ();
33483348 loop = Py_XNewRef (ts -> asyncio_running_loop );
33493349 if (loop == NULL ) {
33503350 /* There's no currently running event loop */
0 commit comments