[3.7] Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726)

(cherry picked from commit addf8afb43)
This commit is contained in:
Serhiy Storchaka 2018-10-05 21:58:15 +03:00 committed by GitHub
parent 6bffe50f5f
commit d9212200fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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;
}