Fix bug in loops.

It was still popping the stack for the body even though loop
bodies are statements now.
This commit is contained in:
Bob Nystrom
2013-12-07 18:47:40 -08:00
parent eb1e5b48d6
commit 42b04c6c90
3 changed files with 10 additions and 5 deletions
+1
View File
@@ -186,6 +186,7 @@ struct WrenVM
Value unsupported;
SymbolTable globalSymbols;
// TODO(bob): Using a fixed array is gross here.
Value globals[MAX_SYMBOLS];