]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.7] Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 5 Oct 2018 18:58:15 +0000 (21:58 +0300)
committerGitHub <noreply@github.com>
Fri, 5 Oct 2018 18:58:15 +0000 (21:58 +0300)
(cherry picked from commit addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3)

Modules/_asynciomodule.c

index 9f7500a40ad16f18dd20aae763986c110699f7b2..809879ac77d3c754e17242d4e8ecfb44eb8f2df3 100644 (file)
@@ -2663,7 +2663,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;
                 }