summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-06-26 09:50:21 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-06-26 09:50:21 (GMT)
commit91672617d5189e3593415a2a3e7df759ff3aca6b (patch)
tree6da447389ff8d7682fdba2ef141704df79a64b82 /Objects/setobject.c
parentae44292fe2a2904f4e1be80f28a85929833826a7 (diff)
downloadcpython-91672617d5189e3593415a2a3e7df759ff3aca6b.zip
cpython-91672617d5189e3593415a2a3e7df759ff3aca6b.tar.gz
cpython-91672617d5189e3593415a2a3e7df759ff3aca6b.tar.bz2
Minor tweeak to tighten the inner-loop.
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 5b430b3..85cb4bc 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;
}
}