summaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.c b/lua.c
index b1c4cb7b..d390a7aa 100644
--- a/lua.c
+++ b/lua.c
@@ -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
143static int l_getargs (lua_State *l) { 143static 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}