summaryrefslogtreecommitdiff
path: root/Objects/dict-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/dict-common.h')
-rw-r--r--Objects/dict-common.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/Objects/dict-common.h b/Objects/dict-common.h
index 3e524686b4..71d6b02744 100644
--- a/Objects/dict-common.h
+++ b/Objects/dict-common.h
@@ -58,15 +58,8 @@ struct _dictkeysobject {
- 4 bytes if dk_size <= 0xffffffff (int32_t*)
- 8 bytes otherwise (int64_t*)
- Dynamically sized, 8 is minimum. */
- union {
- int8_t as_1[8];
- int16_t as_2[4];
- int32_t as_4[2];
-#if SIZEOF_VOID_P > 4
- int64_t as_8[1];
-#endif
- } dk_indices;
+ Dynamically sized, SIZEOF_VOID_P is minimum. */
+ char dk_indices[]; /* char is required to avoid strict aliasing. */
/* "PyDictKeyEntry dk_entries[dk_usable];" array follows:
see the DK_ENTRIES() macro */