diff options
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.69 2001/08/30 20:54:02 roberto Exp $ | 2 | ** $Id: lua.c,v 1.70 2001/09/25 17:06:34 roberto Exp $ |
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 | */ |
@@ -141,7 +141,7 @@ static void getargs (l_char *argv[]) { | |||
141 | 141 | ||
142 | 142 | ||
143 | static int l_getargs (lua_State *l) { | 143 | static int l_getargs (lua_State *l) { |
144 | l_char **argv = (l_char **)lua_touserdata(l, -1); | 144 | l_char **argv = (l_char **)lua_touserdata(l, lua_upvalueindex(1)); |
145 | getargs(argv); | 145 | getargs(argv); |
146 | return 1; | 146 | return 1; |
147 | } | 147 | } |