mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-05 00:00:10 +00:00
fixed another stack error
This commit is contained in:
parent
65662e94f2
commit
93130ede65
@ -763,7 +763,7 @@ static void popLocals(CParseState *pstate, int toScope) {
|
||||
int localsToPop = 0;
|
||||
|
||||
while (pstate->compiler->localCount > 0 && pstate->compiler->locals[pstate->compiler->localCount - 1].depth > toScope) {
|
||||
Local *local = &pstate->compiler->locals[localsToPop];
|
||||
Local *local = &pstate->compiler->locals[pstate->compiler->localCount - 1];
|
||||
|
||||
if (local->isCaptured) { // local needs to be closed over so other closures can reference it
|
||||
// first though, if there are other locals in queue to pop first, go ahead and pop those :)
|
||||
|
Loading…
Reference in New Issue
Block a user