[issue19537] Fix misalignment in fastsearch_memchr_1char

Serhiy Storchaka report at bugs.python.org
Mon Dec 16 14:52:23 CET 2013


Serhiy Storchaka added the comment:

I think that adding __attribute__ ((aligned (sizeof(void *)))) to the PyObject type (or to the ob_base field) is enough.

If first byte of structure is aligned, then first byte past the structure should be aligned too.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19537>
_______________________________________


More information about the Python-bugs-list mailing list