From b3557e87a8ea1e945ff483bcd5dabe3589eb3e61 Mon Sep 17 00:00:00 2001 From: Eric Lippert Date: Thu, 30 Aug 2018 10:58:10 -0700 Subject: [PATCH] Fix issue 34551 - remove redundant store 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. --- Objects/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/call.c b/Objects/call.c index 1937a8b2278e85..bda05738755a5e 100644 --- a/Objects/call.c +++ b/Objects/call.c @@ -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;