From 36aecd4548e5cafc3b6b7ab9f6045db866cf7d9a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 28 Nov 2017 13:26:15 -0200 Subject: [PATCH] order opcodes cannot use 'K' operands --- lcode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcode.c b/lcode.c index 04d7b9e0..97aa9dda 100644 --- a/lcode.c +++ b/lcode.c @@ -1,5 +1,5 @@ /* -** $Id: lcode.c,v 2.136 2017/11/23 19:29:04 roberto Exp roberto $ +** $Id: lcode.c,v 2.137 2017/11/28 12:58:18 roberto Exp roberto $ ** Code generator for Lua ** See Copyright Notice in lua.h */ @@ -1399,7 +1399,7 @@ void luaK_infix (FuncState *fs, BinOpr op, expdesc *v) { case OPR_GT: case OPR_GE: { lua_Integer dummy; if (!isSCnumber(v, &dummy)) - luaK_exp2RK(fs, v); + luaK_exp2anyreg(fs, v); /* else keep numeral, which may be an immediate operand */ break; }