diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2009-09-21 21:17:48 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-09-21 21:17:48 (GMT) |
| commit | 2a46658beef7de998dfcf85ca5e9ddf97f63a8bf (patch) | |
| tree | 679ea91e03e3be7d7c03ae94b37dd1f1e84eff7e /Modules/_io/fileio.c | |
| parent | 40ee861c0acea30e27f06f088b0713b617a4291c (diff) | |
| download | cpython-2a46658beef7de998dfcf85ca5e9ddf97f63a8bf.zip cpython-2a46658beef7de998dfcf85ca5e9ddf97f63a8bf.tar.gz cpython-2a46658beef7de998dfcf85ca5e9ddf97f63a8bf.tar.bz2 | |
Issue #6236, #6348: Fix various failures in the io module under AIX
and other platforms, when using a non-gcc compiler. Patch by egreen.
In addition, I made explicit the signedness of all bitfields in the
IO library.
Diffstat (limited to 'Modules/_io/fileio.c')
| -rw-r--r-- | Modules/_io/fileio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index 989c866..e98de9e 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -45,10 +45,10 @@ typedef struct { PyObject_HEAD int fd; - unsigned readable : 1; - unsigned writable : 1; - int seekable : 2; /* -1 means unknown */ - int closefd : 1; + unsigned int readable : 1; + unsigned int writable : 1; + signed int seekable : 2; /* -1 means unknown */ + unsigned int closefd : 1; PyObject *weakreflist; PyObject *dict; } fileio; |
