Commit 05756f21 authored by Kenichi Handa's avatar Kenichi Handa

(sub_char_table_ref_and_range): Fix the range check against max_char.

parent fb6b6049
......@@ -257,7 +257,7 @@ sub_char_table_ref_and_range (table, c, from, to, defalt)
break;
}
}
while ((c = min_char + (index + 1) * chartab_chars[depth]) < max_char
while ((c = min_char + (index + 1) * chartab_chars[depth]) <= max_char
&& *to >= c)
{
Lisp_Object this_val;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment