]> git.eshelyaron.com Git - emacs.git/commitdiff
(sub_char_table_ref_and_range): Fix the range check against max_char.
authorKenichi Handa <handa@m17n.org>
Mon, 13 Jul 2009 04:02:26 +0000 (04:02 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 13 Jul 2009 04:02:26 +0000 (04:02 +0000)
src/chartab.c

index 89f6379b416c1f9dbcb696f747e3e5b7a46f4ca2..30f7e8bef2c743509dae6f0d1b414b3abf2c751d 100644 (file)
@@ -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;