Skip to content

Commit 9a7c43b

Browse files
Fix strict-aliasing rules errors on gcc 4.8.5. (GH-16714)
(cherry picked from commit c39d1dd) Co-authored-by: Dong-hee Na <[email protected]>
1 parent 02d6f4f commit 9a7c43b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ insert_to_emptydict(PyDictObject *mp, PyObject *key, Py_hash_t hash,
11291129
MAINTAIN_TRACKING(mp, key, value);
11301130

11311131
size_t hashpos = (size_t)hash & (PyDict_MINSIZE-1);
1132-
PyDictKeyEntry *ep = &DK_ENTRIES(mp->ma_keys)[0];
1132+
PyDictKeyEntry *ep = DK_ENTRIES(mp->ma_keys);
11331133
dictkeys_set_index(mp->ma_keys, hashpos, 0);
11341134
ep->me_key = key;
11351135
ep->me_hash = hash;

0 commit comments

Comments
 (0)