Commit 08eae43e authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #19537: Fix PyUnicode_DATA() alignment under m68k. Patch by Andreas Schwab.

parents e1b6f97d 8c6f8dc5
...@@ -343,6 +343,9 @@ typedef struct { ...@@ -343,6 +343,9 @@ typedef struct {
the data pointer is filled out. The bit is redundant, and helps the data pointer is filled out. The bit is redundant, and helps
to minimize the test in PyUnicode_IS_READY(). */ to minimize the test in PyUnicode_IS_READY(). */
unsigned int ready:1; unsigned int ready:1;
/* Padding to ensure that PyUnicode_DATA() is always aligned to
4 bytes (see issue #19537 on m68k). */
unsigned int :24;
} state; } state;
wchar_t *wstr; /* wchar_t representation (null-terminated) */ wchar_t *wstr; /* wchar_t representation (null-terminated) */
} PyASCIIObject; } PyASCIIObject;
......
...@@ -1171,6 +1171,7 @@ Robin Schreiber ...@@ -1171,6 +1171,7 @@ Robin Schreiber
Chad J. Schroeder Chad J. Schroeder
Christian Schubert Christian Schubert
Sam Schulenburg Sam Schulenburg
Andreas Schwab
Stefan Schwarzer Stefan Schwarzer
Dietmar Schwertberger Dietmar Schwertberger
Federico Schwindt Federico Schwindt
......
...@@ -10,6 +10,9 @@ Release date: TBA ...@@ -10,6 +10,9 @@ Release date: TBA
Core and Builtins Core and Builtins
----------------- -----------------
- Issue #19537: Fix PyUnicode_DATA() alignment under m68k. Patch by
Andreas Schwab.
- Issue #20929: Add a type cast to avoid shifting a negative number. - Issue #20929: Add a type cast to avoid shifting a negative number.
- Issue #20731: Properly position in source code files even if they - Issue #20731: Properly position in source code files even if they
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment