Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions src/lvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ void luaV_finishOp (lua_State *L) {
# define op_arithI(L,iop,fop) { \
StkId ra = RA(i); \
TValue *v1 = vRB(i); \
int imm = yk_promote(GETARG_sC(i)); \
int imm = GETARG_sC(i); \
if (ttisinteger(v1)) { \
lua_Integer iv1 = ivalue(v1); \
pc++; setivalue(s2v(ra), iop(L, iv1, imm)); \
Expand Down Expand Up @@ -1049,7 +1049,7 @@ void luaV_finishOp (lua_State *L) {
# define op_orderI(L,opi,opf,inv,tm) { \
StkId ra = RA(i); \
int cond; \
int im = yk_promote(GETARG_sB(i)); \
int im = GETARG_sB(i); \
if (ttisinteger(s2v(ra))) \
cond = opi(ivalue(s2v(ra)), im); \
else if (ttisfloat(s2v(ra))) { \
Expand Down Expand Up @@ -1598,11 +1598,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
vmcase(OP_MMBINI) {
StkId ra = RA(i);
Instruction pi = *(pc - 2); /* original arith. expression */
#ifdef USE_YK
int imm = yk_promote(GETARG_sB(i));
#else
int imm = GETARG_sB(i);
#endif
TMS tm = (TMS)GETARG_C(i);
int flip = GETARG_k(i);
StkId result = RA(pi);
Expand Down Expand Up @@ -1709,11 +1705,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
vmcase(OP_EQI) {
StkId ra = RA(i);
int cond;
#ifdef USE_YK
int im = yk_promote(GETARG_sB(i));
#else
int im = GETARG_sB(i);
#endif
if (ttisinteger(s2v(ra)))
cond = (ivalue(s2v(ra)) == im);
else if (ttisfloat(s2v(ra)))
Expand Down