mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
access dk_indices through a union
This commit is contained in:
parent
a4348cc1be
commit
186122ead2
2 changed files with 18 additions and 17 deletions
|
@ -62,7 +62,12 @@ struct _dictkeysobject {
|
|||
- 8 bytes otherwise (Py_ssize_t*)
|
||||
|
||||
Dynamically sized, 8 is minimum. */
|
||||
char dk_indices[8];
|
||||
union {
|
||||
int8_t as_1[8];
|
||||
int16_t as_2[4];
|
||||
int32_t as_4[2];
|
||||
int64_t as_8[1];
|
||||
} dk_indices;
|
||||
|
||||
/* "PyDictKeyEntry dk_entries[dk_usable];" array follows:
|
||||
see the DK_ENTRIES() macro */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue