]> code.delx.au - gnu-emacs/blobdiff - src/chartab.c
* menu.c [HAVE_NTGUI]: Declare current_popup_menu.
[gnu-emacs] / src / chartab.c
index 89f6379b416c1f9dbcb696f747e3e5b7a46f4ca2..79906c38fd73ce495fea81d3cfd4839c7e3b339f 100644 (file)
@@ -19,6 +19,7 @@ You should have received a copy of the GNU General Public License
 along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include <config.h>
+#include <setjmp.h>
 #include "lisp.h"
 #include "character.h"
 #include "charset.h"
@@ -257,7 +258,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;