Changeset 1077


Ignore:
Timestamp:
02/16/21 06:38:51 (4 years ago)
Author:
Maciej Komosinski
Message:

Fixed limited scope of for(var somevariable) ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/vm/framscript.y

    r973 r1077  
    514514                   trstack.adjust($3.stack-trstack.currentPos());
    515515           int adj=$1.stack-trstack.currentPos();
    516            trstack.adjust(adj);
     516           trstack.dropToPos($1.stack);
    517517           if (adj!=0)
    518518                   trctx.out->printf("add %d,m0\n",adj);
     
    580580           if ($1.stack != trstack.currentPos())
    581581                   trctx.out->printf("add %d,m0\n",$1.stack-trstack.currentPos());
    582            trstack.adjust($1.stack-trstack.currentPos());
     582           trstack.dropToPos($1.stack);
    583583           trstack.loops.drop();
    584584           }
Note: See TracChangeset for help on using the changeset viewer.