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.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 | } |
