]> granicus.if.org Git - re2c/commitdiff
- WS/CS
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Tue, 27 Dec 2005 22:56:35 +0000 (22:56 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Tue, 27 Dec 2005 22:56:35 +0000 (22:56 +0000)
actions.cc

index 16cf2e3344900125cfbe3759b0515eb8e4de7d69..bc900add0861ecc6c4fa321ed3e0cf479ae815ab 100644 (file)
@@ -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;
        }