[Python-checkins] cpython: Minor code clean up.
raymond.hettinger
python-checkins at python.org
Wed Feb 4 17:37:12 CET 2015
https://hg.python.org/cpython/rev/017e7391ab58
changeset: 94505:017e7391ab58
user: Raymond Hettinger <python at rcn.com>
date: Wed Feb 04 08:37:02 2015 -0800
summary:
Minor code clean up.
files:
Objects/setobject.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Objects/setobject.c b/Objects/setobject.c
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -89,7 +89,7 @@
freeslot = entry;
if (i + LINEAR_PROBES <= mask) {
- for (j = 1 ; j <= LINEAR_PROBES ; j++) {
+ for (j = 0 ; j < LINEAR_PROBES ; j++) {
entry++;
if (entry->key == NULL)
goto found_null;
@@ -151,7 +151,7 @@
if (entry->key == NULL)
goto found_null;
if (i + LINEAR_PROBES <= mask) {
- for (j = 1; j <= LINEAR_PROBES; j++) {
+ for (j = 0; j < LINEAR_PROBES; j++) {
entry++;
if (entry->key == NULL)
goto found_null;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list