aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-02-11 11:12:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-02-11 11:12:33 -0300
commit9b7987a9d1471ba94764286b28e0998f73deb46a (patch)
treeb24e2836a29621521d65e6dc77fb39bdc4b627ee /lvm.c
parent28ef7061bbcce39590c97a2ad662e0b60f7adab5 (diff)
downloadlua-9b7987a9d1471ba94764286b28e0998f73deb46a.tar.gz
lua-9b7987a9d1471ba94764286b28e0998f73deb46a.tar.bz2
lua-9b7987a9d1471ba94764286b28e0998f73deb46a.zip
OP_LOADFALSE broken in two instructions
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lvm.c b/lvm.c
index 9c1ad47e..d802379c 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1183,7 +1183,11 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
1183 } 1183 }
1184 vmcase(OP_LOADFALSE) { 1184 vmcase(OP_LOADFALSE) {
1185 setbfvalue(s2v(ra)); 1185 setbfvalue(s2v(ra));
1186 if (GETARG_B(i)) pc++; /* if B, skip next instruction */ 1186 vmbreak;
1187 }
1188 vmcase(OP_LFALSESKIP) {
1189 setbfvalue(s2v(ra));
1190 pc++; /* skip next instruction */
1187 vmbreak; 1191 vmbreak;
1188 } 1192 }
1189 vmcase(OP_LOADTRUE) { 1193 vmcase(OP_LOADTRUE) {