res = make_specified_string (XSTRING (string)->data + from_byte,
to_char - from_char, to_byte - from_byte,
STRING_MULTIBYTE (string));
- copy_text_properties (from_char, to_char, string,
- make_number (0), res, Qnil);
+ copy_text_properties (make_number (from_char), make_number (to_char),
+ string, make_number (0), res, Qnil);
}
else
res = Fvector (to_char - from_char,
res = make_specified_string (XSTRING (string)->data + from_byte,
to - from, to_byte - from_byte,
STRING_MULTIBYTE (string));
- copy_text_properties (from, to, string, make_number (0), res, Qnil);
+ copy_text_properties (make_number (from), make_number (to),
+ string, make_number (0), res, Qnil);
}
else
res = Fvector (to - from,
charset_info = Fget (range, Qcharset);
CHECK_VECTOR (charset_info, 0);
- return Faref (char_table, XVECTOR (charset_info)->contents[0] + 128);
+ return Faref (char_table,
+ make_number (XINT (XVECTOR (charset_info)->contents[0])
+ + 128));
}
else if (VECTORP (range))
{
if (XVECTOR (range)->size == 1)
- return Faref (char_table, XVECTOR (range)->contents[0] + 128);
+ return Faref (char_table,
+ make_number (XINT (XVECTOR (range)->contents[0]) + 128));
else
{
int size = XVECTOR (range)->size;
charset_info = Fget (range, Qcharset);
CHECK_VECTOR (charset_info, 0);
- return Faset (char_table, XVECTOR (charset_info)->contents[0] + 128,
+ return Faset (char_table,
+ make_number (XINT (XVECTOR (charset_info)->contents[0])
+ + 128),
value);
}
else if (INTEGERP (range))
else if (VECTORP (range))
{
if (XVECTOR (range)->size == 1)
- return Faset (char_table, XVECTOR (range)->contents[0] + 128, value);
+ return Faset (char_table,
+ make_number (XINT (XVECTOR (range)->contents[0]) + 128),
+ value);
else
{
int size = XVECTOR (range)->size;