[Python-checkins] cpython: Minor beautification. Put updates and declarations in a more logical order.
raymond.hettinger
python-checkins at python.org
Sun Sep 22 00:39:56 CEST 2013
http://hg.python.org/cpython/rev/5fb65d396420
changeset: 85769:5fb65d396420
user: Raymond Hettinger <python at rcn.com>
date: Sat Sep 21 15:39:49 2013 -0700
summary:
Minor beautification. Put updates and declarations in a more logical order.
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
@@ -60,8 +60,8 @@
size_t perturb = hash;
size_t mask = so->mask;
size_t i = (size_t)hash; /* Unsigned for defined overflow behavior. */
+ size_t j;
int cmp;
- size_t j;
entry = &table[i & mask];
if (entry->key == NULL)
@@ -211,9 +211,9 @@
i = i * 5 + 1 + perturb;
}
found_null:
- so->fill++;
entry->key = key;
entry->hash = hash;
+ so->fill++;
so->used++;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list