summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-01-31 04:09:23 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-01-31 04:09:23 (GMT)
commit9edd753229011bef100a3d4156adffbbe712fc0b (patch)
tree422f23a30f0d65debeb578f0d88bfd77d73b33bd /Objects
parent06a1c8dfa08c5314d4dfa1c6233843dc777a860e (diff)
downloadcpython-9edd753229011bef100a3d4156adffbbe712fc0b.zip
cpython-9edd753229011bef100a3d4156adffbbe712fc0b.tar.gz
cpython-9edd753229011bef100a3d4156adffbbe712fc0b.tar.bz2
Minor tweak to improve code clarity.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/setobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 2c38bf3..7236dd5 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -150,7 +150,7 @@ set_insert_clean(PySetObject *so, PyObject *key, Py_hash_t hash)
goto found_null;
if (i + LINEAR_PROBES <= mask) {
for (j = 1; j <= LINEAR_PROBES; j++) {
- entry = &table[i + j];
+ entry++;
if (entry->key == NULL)
goto found_null;
}