summaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lcode.c b/lcode.c
index 72a1b71e..1b745d64 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 1.65 2001/03/07 13:22:55 roberto Exp roberto $ 2** $Id: lcode.c,v 1.66 2001/03/26 14:31:49 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*/
@@ -474,13 +474,11 @@ int luaK_code2 (FuncState *fs, OpCode o, int arg1, int arg2) {
474 break; 474 break;
475 } 475 }
476 case OP_SETLIST: { 476 case OP_SETLIST: {
477 if (arg2 == 0) return NO_JUMP; /* nothing to do */ 477 pop = fs->stacklevel - 1 - arg2;
478 pop = arg2;
479 break; 478 break;
480 } 479 }
481 case OP_SETMAP: { 480 case OP_SETMAP: {
482 if (arg1 == 0) return NO_JUMP; /* nothing to do */ 481 pop = fs->stacklevel - 1 - arg1;
483 pop = 2*arg1;
484 break; 482 break;
485 } 483 }
486 case OP_PUSHNIL: { 484 case OP_PUSHNIL: {