diff options
author | 2019-10-13 19:14:27 -0700 | |
---|---|---|
committer | 2019-10-13 19:14:27 -0700 | |
commit | 9a7c43bafd07d7b8db5f2329b264c9f83652c682 (patch) | |
tree | d8334a8aa09f9223430c4ed663cc90f4a5b54eb3 /Objects | |
parent | Rebased version of what's new PR (GH-16745) (#16748) (diff) | |
download | cpython-9a7c43bafd07d7b8db5f2329b264c9f83652c682.tar.gz cpython-9a7c43bafd07d7b8db5f2329b264c9f83652c682.tar.bz2 cpython-9a7c43bafd07d7b8db5f2329b264c9f83652c682.zip |
Fix strict-aliasing rules errors on gcc 4.8.5. (GH-16714)
(cherry picked from commit c39d1ddc012987e2159a997e27665d2d579c0ce0)
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 31f962d16b2..a6ddf70cd8f 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -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; |