mirror of https://github.com/python/cpython
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:
parent
2447773573
commit
5a95ba29da
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue