egreen <egr...@operamail.com> added the comment: 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. ---------- nosy: +egreen Added file: http://bugs.python.org/file14944/fileio-seekable.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6236> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com