summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-06-26 02:50:21 -0700
committerRaymond Hettinger <python@rcn.com>2015-06-26 02:50:21 -0700
commit91672617d5189e3593415a2a3e7df759ff3aca6b (patch)
tree6da447389ff8d7682fdba2ef141704df79a64b82
parentae44292fe2a2904f4e1be80f28a85929833826a7 (diff)
downloadcpython-git-91672617d5189e3593415a2a3e7df759ff3aca6b.tar.gz
Minor tweeak to tighten the inner-loop.
-rw-r--r--Objects/setobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 5b430b380e..85cb4bc16a 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -199,7 +199,7 @@ set_insert_key(PySetObject *so, PyObject *key, Py_hash_t hash)
goto found_active;
mask = so->mask;
}
- if (entry->hash == -1 && freeslot == NULL)
+ else if (entry->hash == -1 && freeslot == NULL)
freeslot = entry;
}
}