[Python-checkins] cpython: Minor tweak to improve code clarity.

raymond.hettinger python-checkins at python.org
Sat Jan 31 05:10:14 CET 2015


https://hg.python.org/cpython/rev/f726b27bda8d
changeset:   94404:f726b27bda8d
user:        Raymond Hettinger <python at rcn.com>
date:        Fri Jan 30 20:09:23 2015 -0800
summary:
  Minor tweak to improve code clarity.

files:
  Objects/setobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/setobject.c b/Objects/setobject.c
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -150,7 +150,7 @@
             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;
             }

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list