diff options
author | Christopher Faylor <me@cgf.cx> | 2005-06-11 05:09:25 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-06-11 05:09:25 +0000 |
commit | b945228cb655728187295c54349b21b2b295d5f1 (patch) | |
tree | ff0109e45db2debee6bcbd9f80c7e5ff55941f61 | |
parent | 452e5c7297093ea1b25a0b003ef217113657a871 (diff) | |
download | newlib-b945228cb655728187295c54349b21b2b295d5f1.zip newlib-b945228cb655728187295c54349b21b2b295d5f1.tar.gz newlib-b945228cb655728187295c54349b21b2b295d5f1.tar.bz2 |
* fhandler_console.cc (fhandler_console::read): Fix a compiler warning.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f06db41..f930017 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 a03cca5..4733c9f 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). */ |