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 + + * fhandler_console.cc (fhandler_console::read): Fix a compiler warning. + 2005-06-10 Christopher Faylor * 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). */