Matthieu Gautier added the comment:
The bug is also present in Python 2.7.
Is it possible to backport this fix ?
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23319
Changes by Matthieu Gautier d...@mgautier.fr:
--
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23319
___
___
Python-bugs
Matthieu Gautier added the comment:
A little ping.
With a new patch integrating the unit test.
--
Added file: http://bugs.python.org/file39800/ctypes_swap_uint_unittest.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
New submission from Matthieu Gautier:
I_set_sw function is missing a SWAP_INT.
This leads to wrong set of bitfield value.
Here is a script to reproduce:
--
from ctypes import *
class HEADER(BigEndianStructure):
_fields_ = ( ('pad', c_uint32, 16),
('v1', c_uint32, 4