This commit was manufactured by cvs2svn to create branch 'utf-2000'.
[chise/xemacs-chise.git-] / src / mule-ccl.c
index ad52fd2..514dfc9 100644 (file)
@@ -1589,7 +1589,7 @@ ccl_driver (struct ccl_program *ccl,
                          /* +1 is for including separator. */
                          point = -point + 1;
                          if (mapping_stack_pointer
-                             >= &mapping_stack[MAX_MAP_SET_LEVEL])
+                             >= mapping_stack + countof (mapping_stack))
                            CCL_INVALID_CMD;
                          PUSH_MAPPING_STACK (map_set_rest_length - point,
                                              reg[rrr]);
@@ -1670,7 +1670,7 @@ ccl_driver (struct ccl_program *ccl,
                      else if (SYMBOLP (content))
                        {
                          if (mapping_stack_pointer
-                             >= &mapping_stack[MAX_MAP_SET_LEVEL])
+                             >= mapping_stack + countof (mapping_stack))
                            CCL_INVALID_CMD;
                          PUSH_MAPPING_STACK (map_set_rest_length, reg[rrr]);
                          PUSH_MAPPING_STACK (map_set_rest_length, op);