[issue23786] test_unaligned_buffers (test.test_hash.HashEqualityTestCase) ... Fatal Python error: Bus error
STINNER Victor
report at bugs.python.org
Fri Mar 27 11:40:36 CET 2015
STINNER Victor added the comment:
The union trick is not portable, using memcpy() is safer. Compilers should be able to optimize it. Use Py_MEMCPY() for the stupid Visual Studio compiler unable to optimize memcpy() for small sizes.
----------
keywords: +patch
Added file: http://bugs.python.org/file38709/fnv_memcpy.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23786>
_______________________________________
More information about the Python-bugs-list
mailing list