mirror of
https://github.com/CPunch/Cosmo.git
synced 2025-12-19 01:30:59 +00:00
fixed stack error
This commit is contained in:
@@ -1018,7 +1018,9 @@ static void forLoop(CParseState *pstate) {
|
||||
|
||||
consume(pstate, TOKEN_DO, "Expected 'do'");
|
||||
|
||||
beginScope(pstate); // fixes stack issues
|
||||
block(pstate); // parses until 'end'
|
||||
endScope(pstate);
|
||||
|
||||
writeJmpBack(pstate, loopStart);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user