summaryrefslogtreecommitdiff
path: root/Modules/_io/textio.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-09-21 21:17:48 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2009-09-21 21:17:48 +0000
commit2a46658beef7de998dfcf85ca5e9ddf97f63a8bf (patch)
tree679ea91e03e3be7d7c03ae94b37dd1f1e84eff7e /Modules/_io/textio.c
parent40ee861c0acea30e27f06f088b0713b617a4291c (diff)
downloadcpython-git-2a46658beef7de998dfcf85ca5e9ddf97f63a8bf.tar.gz
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/textio.c')
-rw-r--r--Modules/_io/textio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index 3b627f2245..2f99a606b2 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -190,9 +190,9 @@ typedef struct {
PyObject_HEAD
PyObject *decoder;
PyObject *errors;
- int pendingcr:1;
- int translate:1;
- unsigned int seennl:3;
+ signed int pendingcr: 1;
+ signed int translate: 1;
+ unsigned int seennl: 3;
} nldecoder_object;
static int