Message314778
No solution found to solve this issue ?
The anomaly is not a cross platform inconsistency, it is an inconsistency between the behaviours of GCC and ctypes, both under Linux or Cygwin, when defining packed structures :
[Marc@I7-860 ~/dev/python/ctypes-bitfields-bug] make test
./bitfield_test1
sizeof(BF32) = 12 ; Memory dump of BF32 = 0xffffffffffffffffffffffff
sizeof(BF64) = 12 ; Memory dump of BF64 = 0xffffffffffffffffffffffff
python3 bitfield_test1.py
sizeof(BF32) = 16 ; Memory dump of BF32 = 0xffffff00ffffff00ffffff00ffffff00
sizeof(BF64) = 16 ; Memory dump of BF64 = 0xffffffffffff0000ffffffffffff0000 |
|
Date |
User |
Action |
Args |
2018-04-01 16:18:14 | mleroy003 | set | recipients:
+ mleroy003, amaury.forgeotdarc, belopolsky, meador.inge, eryksun, ztane, Charles Machalow |
2018-04-01 16:18:14 | mleroy003 | set | messageid: <1522599494.56.0.467229070634.issue29753@psf.upfronthosting.co.za> |
2018-04-01 16:18:14 | mleroy003 | link | issue29753 messages |
2018-04-01 16:18:14 | mleroy003 | create | |
|