mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fix strict-aliasing rules errors on gcc 4.8.5. (GH-16714)
This commit is contained in:
parent
a8e0d3141e
commit
c39d1ddc01
1 changed files with 1 additions and 1 deletions
|
@ -1133,7 +1133,7 @@ insert_to_emptydict(PyDictObject *mp, PyObject *key, Py_hash_t hash,
|
|||
MAINTAIN_TRACKING(mp, key, value);
|
||||
|
||||
size_t hashpos = (size_t)hash & (PyDict_MINSIZE-1);
|
||||
PyDictKeyEntry *ep = &DK_ENTRIES(mp->ma_keys)[0];
|
||||
PyDictKeyEntry *ep = DK_ENTRIES(mp->ma_keys);
|
||||
dictkeys_set_index(mp->ma_keys, hashpos, 0);
|
||||
ep->me_key = key;
|
||||
ep->me_hash = hash;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue