From cd760d6ec8516981e950b60880b26ee43e0d601f Mon Sep 17 00:00:00 2001 From: Ian Farmer Date: Thu, 7 Feb 2008 23:13:48 +0000 Subject: [PATCH] Fix the bug in the CLOSE instruction that was causing upvalues3.lua to fail. --- src/core/org/luaj/vm/LuaState.java | 2 +- version.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/org/luaj/vm/LuaState.java b/src/core/org/luaj/vm/LuaState.java index b3b5fad0..b6d08e7c 100644 --- a/src/core/org/luaj/vm/LuaState.java +++ b/src/core/org/luaj/vm/LuaState.java @@ -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: { diff --git a/version.properties b/version.properties index 692c9c06..5cb2ca00 100644 --- a/version.properties +++ b/version.properties @@ -1 +1 @@ -version: 0.18 \ No newline at end of file +version: 0.19