aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lcode.c b/lcode.c
index 724fc2e4..3b228ff4 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 1.50 2000/08/31 14:08:27 roberto Exp roberto $ 2** $Id: lcode.c,v 1.51 2000/09/29 12:42:13 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*/
@@ -445,7 +445,7 @@ int luaK_code1 (FuncState *fs, OpCode o, int arg1) {
445 445
446int luaK_code2 (FuncState *fs, OpCode o, int arg1, int arg2) { 446int luaK_code2 (FuncState *fs, OpCode o, int arg1, int arg2) {
447 Instruction i = previous_instruction(fs); 447 Instruction i = previous_instruction(fs);
448 int delta = luaK_opproperties[o].push - luaK_opproperties[o].pop; 448 int delta = (int)luaK_opproperties[o].push - (int)luaK_opproperties[o].pop;
449 int optm = 0; /* 1 when there is an optimization */ 449 int optm = 0; /* 1 when there is an optimization */
450 switch (o) { 450 switch (o) {
451 case OP_CLOSURE: { 451 case OP_CLOSURE: {
@@ -647,7 +647,7 @@ int luaK_code2 (FuncState *fs, OpCode o, int arg1, int arg2) {
647} 647}
648 648
649 649
650const struct OpProperties luaK_opproperties[NUM_OPCODES] = { 650const OpProperties luaK_opproperties[NUM_OPCODES] = {
651 {iO, 0, 0}, /* OP_END */ 651 {iO, 0, 0}, /* OP_END */
652 {iU, 0, 0}, /* OP_RETURN */ 652 {iU, 0, 0}, /* OP_RETURN */
653 {iAB, 0, 0}, /* OP_CALL */ 653 {iAB, 0, 0}, /* OP_CALL */