STINNER Victor added the comment:

> I'm pretty sure this is undefined behavior.

Are you talking about the exact C implementation, or the risk of unaligned 
memory accesses?

I suggest to add an assertion to ensure that the pointer is aligned to 16-bits.

----------
nosy: +haypo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27097>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to