From 1e81da51bab87148981486a84b846399050f4ef2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 17 Oct 2001 19:12:57 -0200 Subject: new API for registry and C upvalues + new implementation for references --- lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua.c') diff --git a/lua.c b/lua.c index b1c4cb7b..d390a7aa 100644 --- a/lua.c +++ b/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.69 2001/08/30 20:54:02 roberto Exp $ +** $Id: lua.c,v 1.70 2001/09/25 17:06:34 roberto Exp $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -141,7 +141,7 @@ static void getargs (l_char *argv[]) { static int l_getargs (lua_State *l) { - l_char **argv = (l_char **)lua_touserdata(l, -1); + l_char **argv = (l_char **)lua_touserdata(l, lua_upvalueindex(1)); getargs(argv); return 1; } -- cgit v1.2.3-55-g6feb