2011-06-13 Paul Eggert <eggert@cs.ucla.edu>
+ * editfns.c (Ftranslate_region_internal): Use int, not EMACS_INT
+ for characters.
+
* doc.c (get_doc_string): Omit (unsigned)c that mishandled negatives.
* data.c (Faset): If ARRAY is a string, check that NEWELT is a char.
len = CHAR_STRING (c, str);
else
{
- str[0] = (ASCII_CHAR_P (c)
- ? c
- : multibyte_char_to_unibyte (c));
+ str[0] = ASCII_CHAR_P (c) ? c : multibyte_char_to_unibyte (c);
len = 1;
}
(*insert_func) ((char *) str, len);
}
else
{
- EMACS_INT c;
+ int c;
nc = oc;
val = CHAR_TABLE_REF (table, oc);
if (CHARACTERP (val)
- && (c = XINT (val), CHAR_VALID_P (c, 0)))
+ && (c = XFASTINT (val), CHAR_VALID_P (c, 0)))
{
nc = c;
str_len = CHAR_STRING (nc, buf);