diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-12 16:25:12 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-12 16:25:12 -0700 |
commit | 445c8176ba0785ba63814d7d5857cb3439ffdc46 (patch) | |
tree | 4c91002d9de52b8cf0d7d4f7cac1e7d5b82804cd /src/casefiddle.c | |
parent | 6af9d25e6c4a87a1681fbfbf18a45a5729301359 (diff) | |
download | emacs-445c8176ba0785ba63814d7d5857cb3439ffdc46.tar.gz |
* lisp.h (UNSIGNED_CMP): New macro.
This fixes comparison bugs on 64-bit hosts.
(ASCII_CHAR_P): Use it.
* casefiddle.c (casify_object):
* character.h (ASCII_BYTE_P, CHAR_VALID_P):
(SINGLE_BYTE_CHAR_P, CHAR_STRING):
* composite.h (COMPOSITION_ENCODE_RULE_VALID):
* dispextern.h (FACE_FROM_ID):
* keyboard.c (read_char): Use UNSIGNED_CMP.
Diffstat (limited to 'src/casefiddle.c')
-rw-r--r-- | src/casefiddle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/casefiddle.c b/src/casefiddle.c index 9f286d73a5e..1a0a62f273c 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c @@ -52,7 +52,7 @@ casify_object (enum case_action flag, Lisp_Object obj) /* If the character has higher bits set above the flags, return it unchanged. It is not a real character. */ - if ((unsigned) XFASTINT (obj) > (unsigned) flagbits) + if (UNSIGNED_CMP (XFASTINT (obj), >, flagbits)) return obj; c1 = XFASTINT (obj) & ~flagbits; |