History

Lua 5.2.0-work2

Lua Team committed 16 years ago

Commit be77f271 parent 4ea600a26 files · +335 −148Browse files

Showing the changes to src/lcode.c (1 of 26 files). Show all

Unified · Split

src/lcode.c+4−4
@@ -1,5 +1,5 @@
1/*1/*
2** $Id: lcode.c,v 2.42 2009/09/23 20:33:05 roberto Exp $2** $Id: lcode.c,v 2.43 2010/01/11 17:38:30 roberto Exp $
3** Code generator for Lua3** Code generator for Lua
4** See Copyright Notice in lua.h4** See Copyright Notice in lua.h
5*/5*/
@@ -830,15 +830,15 @@ void luaK_posfix (FuncState *fs, BinOpr op, expdesc *e1, expdesc *e2) { · 824 unmodified lines
830 }830 }
831 case OPR_ADD: case OPR_SUB: case OPR_MUL: case OPR_DIV:831 case OPR_ADD: case OPR_SUB: case OPR_MUL: case OPR_DIV:
832 case OPR_MOD: case OPR_POW: {832 case OPR_MOD: case OPR_POW: {
833 codearith(fs, op - OPR_ADD + OP_ADD, e1, e2);833 codearith(fs, cast(OpCode, op - OPR_ADD + OP_ADD), e1, e2);
834 break;834 break;
835 }835 }
836 case OPR_EQ: case OPR_LT: case OPR_LE: {836 case OPR_EQ: case OPR_LT: case OPR_LE: {
837 codecomp(fs, op - OPR_EQ + OP_EQ, 1, e1, e2);837 codecomp(fs, cast(OpCode, op - OPR_EQ + OP_EQ), 1, e1, e2);
838 break;838 break;
839 }839 }
840 case OPR_NE: case OPR_GT: case OPR_GE: {840 case OPR_NE: case OPR_GT: case OPR_GE: {
841 codecomp(fs, op - OPR_NE + OP_EQ, 0, e1, e2);841 codecomp(fs, cast(OpCode, op - OPR_NE + OP_EQ), 0, e1, e2);
842 break;842 break;
843 }843 }
844 default: lua_assert(0);844 default: lua_assert(0);