cpython: 579141d6e353 (original) (raw)
Mercurial > cpython
changeset 103748:579141d6e353
Issue #28040: Cleanup find_empty_slot() find_empty_slot() only supports combined dict [#28040]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Tue, 13 Sep 2016 09:38:29 +0200 |
parents | 81ecf0daca46 |
children | 4833ae686909 |
files | Objects/dictobject.c |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-)[+] [-] Objects/dictobject.c 8 |
line wrap: on
line diff
--- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -987,7 +987,7 @@ void when it is known that the key is not present in the dict. The dict must be combined. */ -static Py_ssize_t +static void find_empty_slot(PyDictObject *mp, PyObject *key, Py_hash_t hash, PyObject ***value_addr, Py_ssize_t *hashpos) { @@ -1011,11 +1011,7 @@ find_empty_slot(PyDictObject *mp, PyObje ep = &ep0[mp->ma_keys->dk_nentries]; *hashpos = i & mask; assert(ep->me_value == NULL);