diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-29 11:33:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-29 11:33:31 -0300 |
commit | ac12f4db4b2f715b1556722b6ed65804cfd6348a (patch) | |
tree | 4c15a7988e19c766ed9e88451db92140200fd041 /lua.c | |
parent | b691d4344bb67a1a09203466812877595b3bd744 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||
144 | static int l_getargs (lua_State *l) { | 144 | static 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 | } |