This is the mail archive of the gcc-bugs@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]

[Bug fortran/36890] libgfortran/io/file_pos.c:55: warning: comparison between signed and unsigned



------- Comment #1 from tkoenig at gcc dot gnu dot org  2008-07-22 08:30 -------
This is caused by

static const unsigned int READ_CHUNK = 4096;

and, further down,

      n = (base < READ_CHUNK) ? base : READ_CHUNK;

where base is a gfc_offset (a signed quantity).

The "unsigned" is unnecessary.  I'll commit a patch removing
this as obvious.


-- 

tkoenig at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tkoenig at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-07-22 08:30:26
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36890


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