From 40da665a1e999cc84e31e36266d27f013751ff5c Mon Sep 17 00:00:00 2001 From: helly Date: Tue, 27 Dec 2005 22:56:35 +0000 Subject: [PATCH] - WS/CS --- actions.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/actions.cc b/actions.cc index 16cf2e33..bc900add 100644 --- a/actions.cc +++ b/actions.cc @@ -468,22 +468,26 @@ void CloseVOp::calcSize(Char *rep) exp->calcSize(rep); if (max >= 0) + { size = (exp->size * min) + ((1 + exp->size) * (max - min)); + } else + { size = (exp->size * min) + 1; + } } void CloseVOp::compile(Char *rep, Ins *i) { Ins *jumppoint; - int st = 0; + int st; jumppoint = i + ((1 + exp->size) * (max - min)); for (st = min; st < max; st++) { i->i.tag = FORK; i->i.link = jumppoint; - i += 1; + i++; exp->compile(rep, &i[0]); i += exp->size; } -- 2.40.0