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
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-06-11 09:09:25 +0400
committerChristopher Faylor <me@cgf.cx>2005-06-11 09:09:25 +0400
commitb945228cb655728187295c54349b21b2b295d5f1 (patch)
treeff0109e45db2debee6bcbd9f80c7e5ff55941f61 /winsup
parent452e5c7297093ea1b25a0b003ef217113657a871 (diff)
* fhandler_console.cc (fhandler_console::read): Fix a compiler warning.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/fhandler_console.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index f06db41d5..f9300177c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2005-06-11 Christopher Faylor <cgf@timesys.com>
+
+ * fhandler_console.cc (fhandler_console::read): Fix a compiler warning.
+
2005-06-10 Christopher Faylor <cgf@timesys.com>
* include/pthread.h: Change PTHREAD_MUTEX_DEFAULT to
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index a03cca5ec..4733c9f0c 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -383,7 +383,7 @@ fhandler_console::read (void *pv, size_t& buflen)
an ASCII control character, interpret is as META. */
meta = (control_key_state & ALT_PRESSED) != 0
&& ((control_key_state & CTRL_PRESSED) == 0
- || (ich >= 0 && ich <= 0x1f || ich == 0x7f));
+ || ((signed char) ich >= 0 && ich <= 0x1f || ich == 0x7f));
else
/* Win9x: there's no way to distinguish Alt from AltGr, so rely
on dev_state->meta_mask heuristic (see fhandler_console constructor). */