You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built the python-2.6.2 with the latest libffi-3.0.9 in AIX 5.3 using xlc compiler.
When i try to run the ctypes test cases, two failures are seen in test_bitfields.
It seems that interpreting type c_int and c_short is wrong in bit field for AIX. If i change the type c_int and c_short
to c_unit and c_ushort of class "BITS(Structure)" in file test_bitfields.py then no failures are seen and all the test
cases got passed
This issue is common for both 32 and 64-bit versions
Attaching the complete test case result for reference.
These failures are specific to xlc compiler
In xlc signed bit fields will be mapped to unsigned by default as opposed to gcc where the value stored in the bit field is of type declared.
so the the value returned by "func(byref(b), name)" positive in some cases as it expected to be of type declared.
Their is an xlc compiler option "-qbitfields=signed" to make the bit fields of type signed.
After this all the ctypes test cases got passed.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: