lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 36aecd4548e5cafc3b6b7ab9f6045db866cf7d9a
parent 1a5e8c1014a5416108032042d57f06595553d2bd
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue, 28 Nov 2017 13:25:48 -0200

order opcodes cannot use 'K' operands

Diffstat:
Mlcode.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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; }