Commit 5a95ba29 authored by Eric Lippert's avatar Eric Lippert Committed by Łukasz Langa

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.
parent 24477735
......@@ -352,7 +352,7 @@ _PyFunction_FastCallDict(PyObject *func, PyObject *const *args, Py_ssize_t nargs
Py_INCREF(k[i+1]);
i += 2;
}
nk = i / 2;
assert(i / 2 == nk);
}
else {
kwtuple = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment