aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lvm.c b/lvm.c
index da851516..bc12870c 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 1.108 2000/05/24 13:54:49 roberto Exp roberto $ 2** $Id: lvm.c,v 1.109 2000/05/25 19:02:21 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -77,7 +77,7 @@ static Closure *luaV_closure (lua_State *L, lua_Type t, int nelems) {
77 Closure *c = luaF_newclosure(L, nelems); 77 Closure *c = luaF_newclosure(L, nelems);
78 L->top -= nelems; 78 L->top -= nelems;
79 while (nelems--) 79 while (nelems--)
80 c->consts[nelems] = *(L->top+nelems); 80 c->upvalue[nelems] = *(L->top+nelems);
81 ttype(L->top) = t; 81 ttype(L->top) = t;
82 clvalue(L->top) = c; 82 clvalue(L->top) = c;
83 incr_top; 83 incr_top;
@@ -409,7 +409,7 @@ StkId luaV_execute (lua_State *L, const Closure *cl, StkId base) {
409 break; 409 break;
410 410
411 case OP_PUSHUPVALUE: 411 case OP_PUSHUPVALUE:
412 *top++ = cl->consts[GETARG_U(i)]; 412 *top++ = cl->upvalue[GETARG_U(i)];
413 break; 413 break;
414 414
415 case OP_GETLOCAL: 415 case OP_GETLOCAL: