Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-29 04:05:49 +0400
committerChristopher Faylor <me@cgf.cx>2005-05-29 04:05:49 +0400
commit5c0a13d4868113faa4d9ac4997b724844eb5a144 (patch)
treedc0dcb6688a498558f6379a66be92ead320bbcf0
parent03bb8acaa7be8b1849b4bbee9c213e251cba1f1c (diff)
* fhandler_tty.cc (fhandler_tty_slave:tcflush): Use signed comparison.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/fhandler_tty.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index b5e314ad3..d172fa074 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 d74ddbc59..a31fe6244 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)
{