summaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-28 13:26:15 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-28 13:26:15 -0200
commit36aecd4548e5cafc3b6b7ab9f6045db866cf7d9a (patch)
treef07e32c6fe1f2409c8d816e821d66cf9df7761ec /lcode.c
parent1a5e8c1014a5416108032042d57f06595553d2bd (diff)
downloadlua-github-36aecd4548e5cafc3b6b7ab9f6045db866cf7d9a.tar.gz
order opcodes cannot use 'K' operands
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c4
1 files 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;
}