]> granicus.if.org Git - python/commitdiff
Merged revisions 75009 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 21 Sep 2009 21:42:29 +0000 (21:42 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 21 Sep 2009 21:42:29 +0000 (21:42 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r75009 | antoine.pitrou | 2009-09-21 23:37:02 +0200 (lun., 21 sept. 2009) | 13 lines

  Merged revisions 75007 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r75007 | antoine.pitrou | 2009-09-21 23:17:48 +0200 (lun., 21 sept. 2009) | 7 lines

    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.
  ........
................

Misc/NEWS
Modules/_io/fileio.c
Modules/_io/textio.c

index 41edb17a61b554256747e40a55ad868761f07540..83ff6bfe1f07395162b18c9af96b5ac07a17527c 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -21,6 +21,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #6236, #6348: Fix various failures in the I/O library under AIX
+  and other platforms, when using a non-gcc compiler. Patch by egreen.
+
 - Issue #6954: Fixed crash when using DISTUTILS_DEBUG flag in Distutils.
 
 - Issue #4606: Passing 'None' if ctypes argtype is set to POINTER(...)
index b21712cc91844d90a6f1016dd082fd9b0e536a68..f5ba9715374bc1ef709fc7c145f9aedf8cb4ad99 100644 (file)
 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;
index b91852e3516439a4c12fb3e35c8206a563a4933d..333c93f92087a14fabb51e5f6113f483c6b2e6d4 100644 (file)
@@ -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