summaryrefslogtreecommitdiffstats
path: root/Include/unicodeobject.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-03-23 21:55:03 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-03-23 21:55:03 (GMT)
commit8c6f8dc527d875f5b31f90925a9f61de7c351482 (patch)
tree51517ccd8e7ad7e37bf89c2b4fe5c444094d53bc /Include/unicodeobject.h
parent99d8dd248923c64351da3c7f8fcc3c3d5b969cb8 (diff)
downloadcpython-8c6f8dc527d875f5b31f90925a9f61de7c351482.zip
cpython-8c6f8dc527d875f5b31f90925a9f61de7c351482.tar.gz
cpython-8c6f8dc527d875f5b31f90925a9f61de7c351482.tar.bz2
Issue #19537: Fix PyUnicode_DATA() alignment under m68k. Patch by Andreas Schwab.
Diffstat (limited to 'Include/unicodeobject.h')
-rw-r--r--Include/unicodeobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index c088a0f..faa53d6 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -343,6 +343,9 @@ typedef struct {
the data pointer is filled out. The bit is redundant, and helps
to minimize the test in PyUnicode_IS_READY(). */
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;
wchar_t *wstr; /* wchar_t representation (null-terminated) */
} PyASCIIObject;