From af93af83df6af83408f5940d017baf8637ec1bf1 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 29 Jan 2010 16:03:25 +0200 Subject: [PATCH] w32inevt.c (key_event): Remove unnecessary comparison of event->uChar.AsciiChar with 128. --- src/ChangeLog | 5 +++++ src/w32inevt.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 38368f33a70..cdc72322684 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-01-29 Eli Zaretskii + + * w32inevt.c (key_event): Remove unnecessary comparison of + event->uChar.AsciiChar with 128. + 2010-01-28 Chong Yidong * fileio.c (Frename_file): Fix last change (Bug#5487). diff --git a/src/w32inevt.c b/src/w32inevt.c index 159751c8b46..864b3b3f0bb 100644 --- a/src/w32inevt.c +++ b/src/w32inevt.c @@ -470,7 +470,7 @@ key_event (KEY_EVENT_RECORD *event, struct input_event *emacs_ev, int *isdead) emacs_ev->kind = NO_EVENT; return 0; } - else if (event->uChar.AsciiChar > 0 && event->uChar.AsciiChar < 128) + else if (event->uChar.AsciiChar > 0) { emacs_ev->kind = ASCII_KEYSTROKE_EVENT; emacs_ev->code = event->uChar.AsciiChar; -- 2.39.2