You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
3.12 - PyASCIIObject state only 31 bits in size, should be 32 #99706
/* Padding to ensure that PyUnicode_DATA() is always aligned to
4 bytes (see issue #19537 on m68k). */
unsigned int :25;
I believe the bitfield is intended to have 32 bits, however summing the fields 1 + 3 + 1 + 1 + 25 = 31.
This only appears to affect 3.12, as the interned field has reduced from 2 bits to 1 bit, and the ready bit has been removed, but the padding was only increased from 24 to 25.
changed the title [-]3.12 - PyAsciiObject state only 31 bits in size, should be 32[/-][+]3.12 - PyASCIIObject state only 31 bits in size, should be 32[/+]on Nov 22, 2022
Activity
[-]3.12 - PyAsciiObject state only 31 bits in size, should be 32[/-][+]3.12 - PyASCIIObject state only 31 bits in size, should be 32[/+]gh-99706: unicodeobject: Fix padding in `PyASCIIObject.state` (GH-99707)