]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726) (GH-9728)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 5 Oct 2018 19:15:36 +0000 (12:15 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 5 Oct 2018 19:15:36 +0000 (22:15 +0300)
(cherry picked from commit addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3)
(cherry picked from commit d9212200fe8ddb55d73b8231869cfbb32635ba92)

Modules/_asynciomodule.c

index cbd6fe3c4455842a8a7a0a3f563e51c5e1e640f2..2a6c16da85b41e3c8c72749fe65a1dd2cb1acea5 100644 (file)
@@ -2122,7 +2122,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;
                 }