diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-12 16:28:37 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-12 16:28:37 -0700 |
commit | d37ca62316e7526da7d75cc44c7a4cd8a6281bb5 (patch) | |
tree | e50d173d4fdedd10d52bb4258bd89a0d29f4fff1 /src/keyboard.c | |
parent | ea204efb8a3e81a4d9b04d2a36cb8c2a1c74662c (diff) | |
download | emacs-d37ca62316e7526da7d75cc44c7a4cd8a6281bb5.tar.gz |
Remove incorrect casts to 'unsigned' that lose info on 64-bit hosts.
These casts should not be needed on 32-bit hosts, either.
* keyboard.c (read_char):
* lread.c (Fload): Remove casts to unsigned.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r-- | src/keyboard.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 0bacc2fa28f..0d2761f1aa3 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -2959,9 +2959,7 @@ read_char (int commandflag, int nmaps, Lisp_Object *maps, Lisp_Object prev_event save the echo area contents for it to refer to. */ if (INTEGERP (c) && ! NILP (Vinput_method_function) - && (unsigned) XINT (c) >= ' ' - && (unsigned) XINT (c) != 127 - && (unsigned) XINT (c) < 256) + && ' ' <= XINT (c) && XINT (c) < 256 && XINT (c) != 127) { previous_echo_area_message = Fcurrent_message (); Vinput_method_previous_message = previous_echo_area_message; @@ -2986,9 +2984,7 @@ read_char (int commandflag, int nmaps, Lisp_Object *maps, Lisp_Object prev_event /* Don't run the input method within a key sequence, after the first event of the key sequence. */ && NILP (prev_event) - && (unsigned) XINT (c) >= ' ' - && (unsigned) XINT (c) != 127 - && (unsigned) XINT (c) < 256) + && ' ' <= XINT (c) && XINT (c) < 256 && XINT (c) != 127) { Lisp_Object keys; int key_count, key_count_reset; |