commit | c39d1ddc012987e2159a997e27665d2d579c0ce0 | [log] [tgz] |
---|---|---|
author | Dong-hee Na <donghee.na92@gmail.com> | Fri Oct 11 17:43:11 2019 +0900 |
committer | Inada Naoki <songofacandy@gmail.com> | Fri Oct 11 17:43:11 2019 +0900 |
tree | b9660f518e11162ac436b165beaf0ca920266881 | |
parent | a8e0d3141e271b3c0fbb7399a911f0c3aa567e30 [diff] [blame] |
Fix strict-aliasing rules errors on gcc 4.8.5. (GH-16714)
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 99908a8..b496350 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c
@@ -1133,7 +1133,7 @@ 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;