** Code binary operators with immediate operands. */
| 1384 | ** Code binary operators with immediate operands. |
| 1385 | */ |
| 1386 | static void codebini (FuncState *fs, OpCode op, |
| 1387 | expdesc *e1, expdesc *e2, int flip, int line, |
| 1388 | TMS event) { |
| 1389 | int v2 = int2sC(cast_int(e2->u.ival)); /* immediate operand */ |
| 1390 | lua_assert(e2->k == VKINT); |
| 1391 | finishbinexpval(fs, e1, e2, op, v2, flip, line, OP_MMBINI, event); |
| 1392 | } |
| 1393 | |
| 1394 | |
| 1395 | /* Try to code a binary operator negating its second operand. |
no test coverage detected