]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler_tty.cc (fhandler_tty_slave:tcflush): Use signed comparison.
authorChristopher Faylor <me@cgf.cx>
Sun, 29 May 2005 00:05:49 +0000 (00:05 +0000)
committerChristopher Faylor <me@cgf.cx>
Sun, 29 May 2005 00:05:49 +0000 (00:05 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_tty.cc

index b5e314ad3b550aa755a3e75d9a7e3f6dabf9994f..d172fa07409592e8b479dc76a916f2f09df7fd13 100644 (file)
@@ -1,3 +1,7 @@
+2005-05-28  Christopher Faylor  <cgf@timesys.com>
+
+       * fhandler_tty.cc (fhandler_tty_slave:tcflush): Use signed comparison.
+
 2005-05-28  Christopher Faylor  <cgf@timesys.com>
 
        * times.cc (time_ms::usecs): Coerce comparison to signed or whole test
index d74ddbc59834812dfed2186be24c9428f3d6bbca..a31fe6244339a67a56c2b2983cd575bf0638b903 100644 (file)
@@ -1048,7 +1048,7 @@ fhandler_tty_slave::tcflush (int queue)
     {
       size_t len = UINT_MAX;
       read (NULL, len);
-      ret = len >= 0;
+      ret = ((int) len) >= 0;
     }
   if (queue == TCOFLUSH || queue == TCIOFLUSH)
     {
This page took 0.034577 seconds and 5 git commands to generate.