Fix strict-aliasing rules errors on gcc 4.8.5. (GH-16714)

(cherry picked from commit c39d1ddc01)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
This commit is contained in:
Miss Islington (bot) 2019-10-13 19:14:27 -07:00 committed by GitHub
parent 02d6f4f9bc
commit 9a7c43bafd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1129,7 +1129,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;