From 9edd753229011bef100a3d4156adffbbe712fc0b Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 30 Jan 2015 20:09:23 -0800 Subject: [PATCH] Minor tweak to improve code clarity. --- Objects/setobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/setobject.c b/Objects/setobject.c index 2c38bf3a65d..7236dd57c65 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; }