summaryrefslogtreecommitdiff
path: root/src/character.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-05-31 19:49:12 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-05-31 19:49:12 -0700
commitccd9a01aa7b67dd3d71b49e3c30df04dd39b4cae (patch)
tree00b23405fddaa49b50ce942bc8775e96689176b1 /src/character.h
parentb9627cfb1d5b5b0914525a19cd9edb06f91a1665 (diff)
downloademacs-ccd9a01aa7b67dd3d71b49e3c30df04dd39b4cae.tar.gz
Minor fixes for signed vs unsigned integers.
* character.h (MAYBE_UNIFY_CHAR): * charset.c (maybe_unify_char): * keyboard.c (read_char, reorder_modifiers): XINT -> XFASTINT, since the integer must be nonnegative. * ftfont.c (ftfont_spec_pattern): * keymap.c (access_keymap, silly_event_symbol_error): XUINT -> XFASTINT, since the integer must be nonnegative. (Fsingle_key_description, preferred_sequence_p): XUINT -> XINT, since it makes no difference and we prefer signed. * keyboard.c (record_char): Use XUINT when all the neighbors do. (access_keymap): NATNUMP -> INTEGERP, since the integer must be nonnegative.
Diffstat (limited to 'src/character.h')
-rw-r--r--src/character.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/character.h b/src/character.h
index 31e3b0a9416..884833775de 100644
--- a/src/character.h
+++ b/src/character.h
@@ -544,7 +544,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
Lisp_Object val; \
val = CHAR_TABLE_REF (Vchar_unify_table, c); \
if (INTEGERP (val)) \
- c = XINT (val); \
+ c = XFASTINT (val); \
else if (! NILP (val)) \
c = maybe_unify_char (c, val); \
} \