]> granicus.if.org Git - python/commitdiff
Undo inadvertent line swap
authorRaymond Hettinger <python@rcn.com>
Mon, 14 Dec 2015 03:27:17 +0000 (19:27 -0800)
committerRaymond Hettinger <python@rcn.com>
Mon, 14 Dec 2015 03:27:17 +0000 (19:27 -0800)
Objects/setobject.c

index b00e85fb82bf3e2aae439ba4e36302a3db8211ae..4723b584b88eba5ad1403acb77667a43f34c30cb 100644 (file)
@@ -282,8 +282,8 @@ set_insert_clean(setentry *table, size_t mask, PyObject *key, Py_hash_t hash)
         i = (i * 5 + 1 + perturb) & mask;
     }
   found_null:
-    entry->hash = hash;
     entry->key = key;
+    entry->hash = hash;
 }
 
 /* ======== End logic for probing the hash table ========================== */