Skip to content

Commit c39d1dd

Browse files
corona10methane
authored andcommitted
Fix strict-aliasing rules errors on gcc 4.8.5. (GH-16714)
1 parent a8e0d31 commit c39d1dd

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
@@ -1133,7 +1133,7 @@ insert_to_emptydict(PyDictObject *mp, PyObject *key, Py_hash_t hash,
11331133
MAINTAIN_TRACKING(mp, key, value);
11341134

11351135
size_t hashpos = (size_t)hash & (PyDict_MINSIZE-1);
1136-
PyDictKeyEntry *ep = &DK_ENTRIES(mp->ma_keys)[0];
1136+
PyDictKeyEntry *ep = DK_ENTRIES(mp->ma_keys);
11371137
dictkeys_set_index(mp->ma_keys, hashpos, 0);
11381138
ep->me_key = key;
11391139
ep->me_hash = hash;

0 commit comments

Comments
 (0)