From ac12f4db4b2f715b1556722b6ed65804cfd6348a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 29 Aug 2000 11:33:31 -0300 Subject: C upvalues are the last arguments to a function --- lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua.c') diff --git a/lua.c b/lua.c index 3a50ceb2..bfd380c4 100644 --- a/lua.c +++ b/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.45 2000/08/14 17:45:59 roberto Exp roberto $ +** $Id: lua.c,v 1.46 2000/08/28 17:57:04 roberto Exp roberto $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -142,7 +142,7 @@ static void getargs (char *argv[]) { static int l_getargs (lua_State *l) { - char **argv = (char **)lua_touserdata(l, 1); + char **argv = (char **)lua_touserdata(l, -1); getargs(argv); return 1; } -- cgit v1.2.3-55-g6feb