diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-28 13:26:15 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-28 13:26:15 -0200 |
commit | 36aecd4548e5cafc3b6b7ab9f6045db866cf7d9a (patch) | |
tree | f07e32c6fe1f2409c8d816e821d66cf9df7761ec /lcode.c | |
parent | 1a5e8c1014a5416108032042d57f06595553d2bd (diff) | |
download | lua-github-36aecd4548e5cafc3b6b7ab9f6045db866cf7d9a.tar.gz |
order opcodes cannot use 'K' operands
Diffstat (limited to 'lcode.c')
-rw-r--r-- | lcode.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |