diff options
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b5e314a..d172fa0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 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 is a no-op. diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index d74ddbc..a31fe62 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -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) { |