Fix issue 34551 - remove redundant store (#9009)

The assignment of i/2 to nk is redundant because on this code path, nk is already the size of the dictionary, and i is already twice the size of the dictionary. I've replaced the store with an assertion that i/2 is nk.
This commit is contained in:
Eric Lippert 2018-10-22 08:52:46 -07:00 committed by Łukasz Langa
parent 2447773573
commit 5a95ba29da
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ _PyFunction_FastCallDict(PyObject *func, PyObject *const *args, Py_ssize_t nargs
Py_INCREF(k[i+1]); Py_INCREF(k[i+1]);
i += 2; i += 2;
} }
nk = i / 2; assert(i / 2 == nk);
} }
else { else {
kwtuple = NULL; kwtuple = NULL;