This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author drukker
Recipients amaury.forgeotdarc, drukker, nestor, pitrou
Date 2009-09-21.18:43:33
SpamBayes Score 7.649066e-09
Marked as misclassified No
Message-id <>
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:34drukkersetrecipients: + drukker, amaury.forgeotdarc, pitrou, nestor
2009-09-21 18:43:34drukkersetmessageid: <>
2009-09-21 18:43:33drukkerlinkissue6236 messages
2009-09-21 18:43:33drukkercreate