diff src/mule-ccl.c @ 460:223736d75acb r21-2-45

Import from CVS: tag r21-2-45
author cvs
date Mon, 13 Aug 2007 11:43:24 +0200
parents e7ef97881643
children 0784d089fdc9
line wrap: on
line diff
--- a/src/mule-ccl.c	Mon Aug 13 11:42:27 2007 +0200
+++ b/src/mule-ccl.c	Mon Aug 13 11:43:24 2007 +0200
@@ -1585,7 +1585,7 @@
 			  /* +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]);
@@ -1666,7 +1666,7 @@
 		      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);