]> git.eshelyaron.com Git - emacs.git/commitdiff
(ccl_driver) <CCL_End>: Decrement stack_idx only when it is greater
authorKenichi Handa <handa@m17n.org>
Thu, 22 Jun 2000 01:21:00 +0000 (01:21 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 22 Jun 2000 01:21:00 +0000 (01:21 +0000)
than 0.

src/ccl.c

index 8e2ba81501e6143fa35ce49b2c4e91c5c9e05c2f..4f0dfbfbdbc0c92d504e3b323bc03f9d360e8a4d 100644 (file)
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -1026,8 +1026,9 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
          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;