From addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 5 Oct 2018 21:20:02 +0300 Subject: Fix a compiler warning added in bpo-34872. (GH-9722) --- Modules/_asynciomodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index eb503fb..8898671 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c @@ -2714,7 +2714,7 @@ set_exception: if (task->task_must_cancel) { PyObject *r; int is_true; - r = _PyObject_CallMethodId(fut, &PyId_cancel, NULL); + r = _PyObject_CallMethodId(result, &PyId_cancel, NULL); if (r == NULL) { return NULL; } -- cgit v0.12