aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-29 11:33:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-29 11:33:31 -0300
commitac12f4db4b2f715b1556722b6ed65804cfd6348a (patch)
tree4c15a7988e19c766ed9e88451db92140200fd041 /lua.c
parentb691d4344bb67a1a09203466812877595b3bd744 (diff)
downloadlua-ac12f4db4b2f715b1556722b6ed65804cfd6348a.tar.gz
lua-ac12f4db4b2f715b1556722b6ed65804cfd6348a.tar.bz2
lua-ac12f4db4b2f715b1556722b6ed65804cfd6348a.zip
C upvalues are the last arguments to a function
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.c b/lua.c
index 3a50ceb2..bfd380c4 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.45 2000/08/14 17:45:59 roberto Exp roberto $ 2** $Id: lua.c,v 1.46 2000/08/28 17:57:04 roberto Exp roberto $
3** Lua stand-alone interpreter 3** Lua stand-alone interpreter
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -142,7 +142,7 @@ static void getargs (char *argv[]) {
142 142
143 143
144static int l_getargs (lua_State *l) { 144static int l_getargs (lua_State *l) {
145 char **argv = (char **)lua_touserdata(l, 1); 145 char **argv = (char **)lua_touserdata(l, -1);
146 getargs(argv); 146 getargs(argv);
147 return 1; 147 return 1;
148} 148}