]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix issue 34551 - remove redundant store (#9009)
authorEric Lippert <eric@lippert.com>
Mon, 22 Oct 2018 15:52:46 +0000 (08:52 -0700)
committerŁukasz Langa <lukasz@langa.pl>
Mon, 22 Oct 2018 15:52:46 +0000 (16:52 +0100)
commit5a95ba29da7e55fe6a8777b6ea4c68f60cf0e407
tree51e246406df188ece6d7de1aee7a6e7f4e02f2c4
parent2447773573e74819e163f8963ab107bc5db123e5
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.
Objects/call.c