Fix the bug in the CLOSE instruction that was causing upvalues3.lua to fail.

This commit is contained in:
Ian Farmer
2008-02-07 23:13:48 +00:00
parent cb6ce20dde
commit cd760d6ec8
2 changed files with 2 additions and 2 deletions

View File

@@ -836,7 +836,7 @@ public class LuaState extends Lua {
continue;
}
case LuaState.OP_CLOSE: {
closeUpVals( a ); // close upvals higher in the stack than position a
closeUpVals( base + a ); // close upvals higher in the stack than position a
continue;
}
case LuaState.OP_CLOSURE: {