summaryrefslogtreecommitdiff
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-12-13 19:27:17 -0800
committerRaymond Hettinger <python@rcn.com>2015-12-13 19:27:17 -0800
commit9a13452e4055726c10aef0e3a54b452d70b06746 (patch)
treedd4e0843421cf10eabed1ad0582c4468de734f61 /Objects/setobject.c
parentc5ca685305e39aedea06e1c973b4177b6dd7e010 (diff)
downloadcpython-9a13452e4055726c10aef0e3a54b452d70b06746.tar.gz
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 b00e85fb82..4723b584b8 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 ========================== */