summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-12-14 03:27:17 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-12-14 03:27:17 (GMT)
commit86d322f0204797b0a2fe46e33bce240335270c6f (patch)
tree80eb6a280af355cf1280222ce7abefd4adbb40ed /Objects/setobject.c
parent5088f6005ff5e6bb9fbc1bdfd9777b827c6aab0f (diff)
downloadcpython-86d322f0204797b0a2fe46e33bce240335270c6f.zip
cpython-86d322f0204797b0a2fe46e33bce240335270c6f.tar.gz
cpython-86d322f0204797b0a2fe46e33bce240335270c6f.tar.bz2
Undo inadvertent line swap
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 b00e85f..4723b58 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -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 ========================== */