summaryrefslogtreecommitdiffstats
path: root/Objects/odictobject.c
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-08-03 14:45:15 (GMT)
committerGitHub <noreply@github.com>2017-08-03 14:45:15 (GMT)
commit778928b0c7aa438c282727535814d73df850693a (patch)
tree6fb4290bd52abd4cc8d93b16405883b7c8a8d9a1 /Objects/odictobject.c
parent87c3c5de731af18a271f4559cd69ccb8d050208f (diff)
downloadcpython-778928b0c7aa438c282727535814d73df850693a.zip
cpython-778928b0c7aa438c282727535814d73df850693a.tar.gz
cpython-778928b0c7aa438c282727535814d73df850693a.tar.bz2
bpo-29304: Simplify dict lookup functions (GH-2407)
* remove hashpos parameter from lookdict functions. * remove many duplicated code from lookdict functions.
Diffstat (limited to 'Objects/odictobject.c')
-rw-r--r--Objects/odictobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/odictobject.c b/Objects/odictobject.c
index 771dcc3..c3d1a09 100644
--- a/Objects/odictobject.c
+++ b/Objects/odictobject.c
@@ -546,7 +546,7 @@ _odict_get_index_raw(PyODictObject *od, PyObject *key, Py_hash_t hash)
PyDictKeysObject *keys = ((PyDictObject *)od)->ma_keys;
Py_ssize_t ix;
- ix = (keys->dk_lookup)((PyDictObject *)od, key, hash, &value, NULL);
+ ix = (keys->dk_lookup)((PyDictObject *)od, key, hash, &value);
if (ix == DKIX_EMPTY) {
return keys->dk_nentries; /* index of new entry */
}