@@ -872,9 +872,9 @@ static void discharge2anyreg (FuncState *fs, expdesc *e) {
872872}
873873
874874
875- static int code_loadbool (FuncState * fs , int A , OpCode op , int jump ) {
875+ static int code_loadbool (FuncState * fs , int A , OpCode op ) {
876876 luaK_getlabel (fs ); /* those instructions may be jump targets */
877- return luaK_codeABC (fs , op , A , jump , 0 );
877+ return luaK_codeABC (fs , op , A , 0 , 0 );
878878}
879879
880880
@@ -908,8 +908,8 @@ static void exp2reg (FuncState *fs, expdesc *e, int reg) {
908908 int p_t = NO_JUMP ; /* position of an eventual LOAD true */
909909 if (need_value (fs , e -> t ) || need_value (fs , e -> f )) {
910910 int fj = (e -> k == VJMP ) ? NO_JUMP : luaK_jump (fs );
911- p_f = code_loadbool (fs , reg , OP_LOADFALSE , 1 ); /* skip next inst. */
912- p_t = code_loadbool (fs , reg , OP_LOADTRUE , 0 );
911+ p_f = code_loadbool (fs , reg , OP_LFALSESKIP ); /* skip next inst. */
912+ p_t = code_loadbool (fs , reg , OP_LOADTRUE );
913913 /* jump around these booleans if 'e' is not a test */
914914 luaK_patchtohere (fs , fj );
915915 }
0 commit comments