OP_LOADFALSE broken in two instructions

This commit is contained in:
Roberto Ierusalimschy
2020-02-11 11:12:33 -03:00
parent 28ef7061bb
commit 9b7987a9d1
6 changed files with 14 additions and 6 deletions

6
lvm.c
View File

@@ -1183,7 +1183,11 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
}
vmcase(OP_LOADFALSE) {
setbfvalue(s2v(ra));
if (GETARG_B(i)) pc++; /* if B, skip next instruction */
vmbreak;
}
vmcase(OP_LFALSESKIP) {
setbfvalue(s2v(ra));
pc++; /* skip next instruction */
vmbreak;
}
vmcase(OP_LOADTRUE) {