This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, committed] Fix PR 36890


Hello world,

the patch below was committed as obvious after regression-testing.

	Thomas

2008-07-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR libfortran/36890
        * io/file_pos.c:  Declare READ_CHUNK as signed to avoid
        signed/unsigned comparison warning in formatted_backspace.


Index: /home/ig25/gcc/trunk/libgfortran/io/file_pos.c
===================================================================
--- /home/ig25/gcc/trunk/libgfortran/io/file_pos.c	(revision 138022)
+++ /home/ig25/gcc/trunk/libgfortran/io/file_pos.c	(working copy)
@@ -39,7 +39,7 @@ Boston, MA 02110-1301, USA.  */
    record, and we have to sift backwards to find the newline before
    that or the start of the file, whichever comes first.  */
 
-static const unsigned int READ_CHUNK = 4096;
+static const int READ_CHUNK = 4096;
 
 static void
 formatted_backspace (st_parameter_filepos *fpp, gfc_unit *u)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]