summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-17 14:00:28 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-17 14:00:28 -0200
commit2e8f8a18e4ddbb3bebd8e81e276fc37bce02e422 (patch)
tree13b5f7da3ef51e642bde1a6a7da386e534aaac87
parentf5b0459aba1cf90db8db5136d6719ef4d646a584 (diff)
downloadlua-github-2e8f8a18e4ddbb3bebd8e81e276fc37bce02e422.tar.gz
detail
-rw-r--r--lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index 43485804..93ba0169 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
/*
-** $Id: lvm.c,v 2.261 2015/11/12 18:08:58 roberto Exp roberto $
+** $Id: lvm.c,v 2.262 2015/11/13 13:24:26 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -723,7 +723,7 @@ void luaV_finishOp (lua_State *L) {
/* execute a jump instruction */
#define dojump(ci,i,e) \
{ int a = GETARG_A(i); \
- if (a > 0) luaF_close(L, ci->u.l.base + a - 1); \
+ if (a != 0) luaF_close(L, ci->u.l.base + a - 1); \
ci->u.l.savedpc += GETARG_sBx(i) + e; }
/* for test instructions, execute the jump instruction that follows it */