From c3e5946fb2b7b5781d9bca9d303967abe6263482 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 7 Nov 2017 15:20:42 -0200 Subject: new format for JUMP instructions (to allow larger offsets) --- lvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lvm.c') diff --git a/lvm.c b/lvm.c index b5e1c813..009dfc57 100644 --- a/lvm.c +++ b/lvm.c @@ -1,5 +1,5 @@ /* -** $Id: lvm.c,v 2.301 2017/11/01 18:20:48 roberto Exp $ +** $Id: lvm.c,v 2.306 2017/11/07 13:25:26 roberto Exp roberto $ ** Lua virtual machine ** See Copyright Notice in lua.h */ @@ -753,7 +753,7 @@ void luaV_finishOp (lua_State *L) { ** Execute a jump instruction. The 'updatemask' allows signals to stop ** tight loops. (Without it, the local copy of 'mask' could never change.) */ -#define dojump(ci,i,e) { pc += GETARG_sBx(i) + e; updatemask(L); } +#define dojump(ci,i,e) { pc += GETARG_sJ(i) + e; updatemask(L); } /* for test instructions, execute the jump instruction that follows it */ -- cgit v1.2.3-55-g6feb