changeset 29847:c6b0046bb943

(ccl_driver) <CCL_End>: Decrement stack_idx only when it is greater than 0.
author Kenichi Handa <handa@m17n.org>
date Thu, 22 Jun 2000 01:21:00 +0000
parents 387fb6e30a02
children 80ae67b2a291
files src/ccl.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ccl.c	Thu Jun 22 01:20:25 2000 +0000
+++ b/src/ccl.c	Thu Jun 22 01:21:00 2000 +0000
@@ -1026,8 +1026,9 @@
 	  break;
 
 	case CCL_End:		/* 0000000000000000000000XXXXX */
-	  if (stack_idx-- > 0)
+	  if (stack_idx > 0)
 	    {
+	      stack_idx--;
 	      ccl_prog = ccl_prog_stack_struct[stack_idx].ccl_prog;
 	      ic = ccl_prog_stack_struct[stack_idx].ic;
 	      break;