From 9b7987a9d1471ba94764286b28e0998f73deb46a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 11 Feb 2020 11:12:33 -0300 Subject: OP_LOADFALSE broken in two instructions --- lopcodes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lopcodes.h') diff --git a/lopcodes.h b/lopcodes.h index 8fd52d18..d755870f 100644 --- a/lopcodes.h +++ b/lopcodes.h @@ -202,7 +202,8 @@ OP_LOADI,/* A sBx R[A] := sBx */ OP_LOADF,/* A sBx R[A] := (lua_Number)sBx */ OP_LOADK,/* A Bx R[A] := K[Bx] */ OP_LOADKX,/* A R[A] := K[extra arg] */ -OP_LOADFALSE,/* A B R[A] := false; if (B) pc++ */ +OP_LOADFALSE,/* A R[A] := false */ +OP_LFALSESKIP,/*A R[A] := false; pc++ */ OP_LOADTRUE,/* A R[A] := true */ OP_LOADNIL,/* A B R[A], R[A+1], ..., R[A+B] := nil */ OP_GETUPVAL,/* A B R[A] := UpValue[B] */ -- cgit v1.2.3-55-g6feb