Message92951
The problem is that the fileio struct in Modules/_io/fileio.c defines
the 2-bit seekable field as int.
From the C99 standard, §6.7.2: for bit-fields, it is
implementation-defined whether the specifier int designates the same
type as signed int or the same type as unsigned int.
Contrary to gcc, both xlc and suncc default to unsigned.
Adding 'signed' solves the problem (and also issue #6348).
Patch attached. |
|
Date |
User |
Action |
Args |
2009-09-21 18:43:34 | drukker | set | recipients:
+ drukker, amaury.forgeotdarc, pitrou, nestor |
2009-09-21 18:43:34 | drukker | set | messageid: <1253558614.55.0.0281537157142.issue6236@psf.upfronthosting.co.za> |
2009-09-21 18:43:33 | drukker | link | issue6236 messages |
2009-09-21 18:43:33 | drukker | create | |
|