summaryrefslogtreecommitdiff
path: root/lua.stx
diff options
context:
space:
mode:
Diffstat (limited to 'lua.stx')
-rw-r--r--lua.stx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.stx b/lua.stx
index 13549e31..559d224f 100644
--- a/lua.stx
+++ b/lua.stx
@@ -1,6 +1,6 @@
1%{ 1%{
2/* 2/*
3** $Id: lua.stx,v 1.11 1997/10/16 10:59:34 roberto Exp roberto $ 3** $Id: lua.stx,v 1.12 1997/10/18 16:46:39 roberto Exp roberto $
4** Syntax analizer and code generator 4** Syntax analizer and code generator
5** See Copyright Notice in lua.h 5** See Copyright Notice in lua.h
6*/ 6*/
@@ -520,9 +520,9 @@ static void func_onstack (TProtoFunc *f)
520 int c = next_constant(currState); 520 int c = next_constant(currState);
521 ttype(&currState->f->consts[c]) = LUA_T_PROTO; 521 ttype(&currState->f->consts[c]) = LUA_T_PROTO;
522 currState->f->consts[c].value.tf = (currState+1)->f; 522 currState->f->consts[c].value.tf = (currState+1)->f;
523 code_constant(c);
524 for (i=0; i<nupvalues; i++) 523 for (i=0; i<nupvalues; i++)
525 lua_pushvar((currState+1)->upvalues[i]); 524 lua_pushvar((currState+1)->upvalues[i]);
525 code_constant(c);
526 code_oparg(CLOSURE, 2, nupvalues, -nupvalues); 526 code_oparg(CLOSURE, 2, nupvalues, -nupvalues);
527} 527}
528 528