From 05756f213fcfa16a02a780e17fff16bd4cbb1aa4 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 13 Jul 2009 04:02:26 +0000 Subject: [PATCH] (sub_char_table_ref_and_range): Fix the range check against max_char. --- src/chartab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2