aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-04-06 15:25:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-04-06 15:25:00 -0300
commita68635a919c5541b6acf5c2e8da5f81c67b65a7a (patch)
treee18acd4fc3fd6abdca5d3f8611e97015fd7bda0e /lcode.c
parent211214268065ec61180141d336e02393bc15bce4 (diff)
downloadlua-a68635a919c5541b6acf5c2e8da5f81c67b65a7a.tar.gz
lua-a68635a919c5541b6acf5c2e8da5f81c67b65a7a.tar.bz2
lua-a68635a919c5541b6acf5c2e8da5f81c67b65a7a.zip
list constructors do not adjust last expression
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: {