diff options
author | Yury Selivanov <yury@magic.io> | 2016-10-28 23:01:21 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-10-28 23:01:21 (GMT) |
commit | 684ef2c88882d4c1aaf325fd0a5845740f22c8b7 (patch) | |
tree | b762605c9a3d9c62ee6a9eeaa66ee62823fe7129 /Modules | |
parent | 833c626e6739f7610593e7831166af6d2e064d74 (diff) | |
download | cpython-684ef2c88882d4c1aaf325fd0a5845740f22c8b7.zip cpython-684ef2c88882d4c1aaf325fd0a5845740f22c8b7.tar.gz cpython-684ef2c88882d4c1aaf325fd0a5845740f22c8b7.tar.bz2 |
Issue #28544: Pass `PyObject*` to _PyDict_Pop, not `PyDictObject*`
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_asynciomodule.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index f606923..6278b25 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c @@ -21,7 +21,7 @@ _Py_IDENTIFIER(_wakeup); /* State of the _asyncio module */ static PyObject *all_tasks; -static PyDictObject *current_tasks; +static PyObject *current_tasks; static PyObject *traceback_extract_stack; static PyObject *asyncio_get_event_loop; static PyObject *asyncio_future_repr_info_func; @@ -1429,11 +1429,11 @@ _asyncio_Task_current_task_impl(PyTypeObject *type, PyObject *loop) return NULL; } - res = PyDict_GetItem((PyObject*)current_tasks, loop); + res = PyDict_GetItem(current_tasks, loop); Py_DECREF(loop); } else { - res = PyDict_GetItem((PyObject*)current_tasks, loop); + res = PyDict_GetItem(current_tasks, loop); } if (res == NULL) { @@ -2235,7 +2235,7 @@ task_step(TaskObj *task, PyObject *exc) PyObject *res; PyObject *ot; - if (PyDict_SetItem((PyObject *)current_tasks, + if (PyDict_SetItem(current_tasks, task->task_loop, (PyObject*)task) == -1) { return NULL; @@ -2385,7 +2385,7 @@ module_init(void) goto fail; } - current_tasks = (PyDictObject *)PyDict_New(); + current_tasks = PyDict_New(); if (current_tasks == NULL) { goto fail; } |