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 | |
parent | 1a5e8c1014a5416108032042d57f06595553d2bd (diff) | |
download | lua-36aecd4548e5cafc3b6b7ab9f6045db866cf7d9a.tar.gz lua-36aecd4548e5cafc3b6b7ab9f6045db866cf7d9a.tar.bz2 lua-36aecd4548e5cafc3b6b7ab9f6045db866cf7d9a.zip |
order opcodes cannot use 'K' operands
-rw-r--r-- | lcode.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.c,v 2.136 2017/11/23 19:29:04 roberto Exp roberto $ | 2 | ** $Id: lcode.c,v 2.137 2017/11/28 12:58:18 roberto Exp roberto $ |
3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -1399,7 +1399,7 @@ void luaK_infix (FuncState *fs, BinOpr op, expdesc *v) { | |||
1399 | case OPR_GT: case OPR_GE: { | 1399 | case OPR_GT: case OPR_GE: { |
1400 | lua_Integer dummy; | 1400 | lua_Integer dummy; |
1401 | if (!isSCnumber(v, &dummy)) | 1401 | if (!isSCnumber(v, &dummy)) |
1402 | luaK_exp2RK(fs, v); | 1402 | luaK_exp2anyreg(fs, v); |
1403 | /* else keep numeral, which may be an immediate operand */ | 1403 | /* else keep numeral, which may be an immediate operand */ |
1404 | break; | 1404 | break; |
1405 | } | 1405 | } |