]> granicus.if.org Git - python/commitdiff
Fix a compiler warning added in bpo-34872. (GH-9722)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 5 Oct 2018 18:20:02 +0000 (21:20 +0300)
committerGitHub <noreply@github.com>
Fri, 5 Oct 2018 18:20:02 +0000 (21:20 +0300)
Modules/_asynciomodule.c

index eb503fb38c12cecb7ac4247afa955f3881b897d6..88986718905e7c8b8e2e7a9fd0ed2e1a757816cf 100644 (file)
@@ -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;
             }