From: Kenichi Handa Date: Mon, 13 Jul 2009 04:02:26 +0000 (+0000) Subject: (sub_char_table_ref_and_range): Fix the range check against max_char. X-Git-Tag: emacs-pretest-23.1.90~2190 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=05756f213fcfa16a02a780e17fff16bd4cbb1aa4;p=emacs.git (sub_char_table_ref_and_range): Fix the range check against max_char. --- diff --git a/src/chartab.c b/src/chartab.c index 89f6379b416..30f7e8bef2c 100644 --- a/src/chartab.c +++ b/src/chartab.c @@ -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;