]> granicus.if.org Git - python/commitdiff
Minor tweak to improve code clarity.
authorRaymond Hettinger <python@rcn.com>
Sat, 31 Jan 2015 04:09:23 +0000 (20:09 -0800)
committerRaymond Hettinger <python@rcn.com>
Sat, 31 Jan 2015 04:09:23 +0000 (20:09 -0800)
Objects/setobject.c

index 2c38bf3a65d1f061e81a43ef1955b4c6948929e3..7236dd57c65197fdbbc3c0b0093df28233eacedc 100644 (file)
@@ -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;
             }