[Python-checkins] gh-99706: unicodeobject: Fix padding in `PyASCIIObject.state` (GH-99707)

methane webhook-mailer at python.org
Thu Nov 24 03:22:09 EST 2022


https://github.com/python/cpython/commit/b4d54a332ed593c9fcd0da25684c622a251d03ce
commit: b4d54a332ed593c9fcd0da25684c622a251d03ce
branch: main
author: David Hewitt <1939362+davidhewitt at users.noreply.github.com>
committer: methane <songofacandy at gmail.com>
date: 2022-11-24T17:21:59+09:00
summary:

gh-99706: unicodeobject: Fix padding in `PyASCIIObject.state` (GH-99707)

files:
M Include/cpython/unicodeobject.h

diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h
index 8444507ade1b..86eeab67275e 100644
--- a/Include/cpython/unicodeobject.h
+++ b/Include/cpython/unicodeobject.h
@@ -135,7 +135,7 @@ typedef struct {
         unsigned int ascii:1;
         /* Padding to ensure that PyUnicode_DATA() is always aligned to
            4 bytes (see issue #19537 on m68k). */
-        unsigned int :25;
+        unsigned int :26;
     } state;
 } PyASCIIObject;
 



More information about the Python-checkins mailing list