From: helly Date: Tue, 27 Dec 2005 22:56:35 +0000 (+0000) Subject: - WS/CS X-Git-Tag: 0.13.6~581 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40da665a1e999cc84e31e36266d27f013751ff5c;p=re2c - WS/CS --- 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; }