From 5dcd908add10cdeb74400fb2e67ba58079c69ae7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 26 Aug 2004 11:19:55 -0300 Subject: detail --- lua.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua.c b/lua.c index 7cc48582..a8c289e5 100644 --- a/lua.c +++ b/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.129 2004/07/01 14:26:28 roberto Exp roberto $ +** $Id: lua.c,v 1.130 2004/07/13 19:56:44 roberto Exp roberto $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -107,9 +107,8 @@ static int getargs (lua_State *L, char *argv[], int n) { narg = i-(n+1); /* number of arguments to the script (not to `lua.c') */ lua_newtable(L); for (i=0; argv[i]; i++) { - lua_pushnumber(L, i - n); lua_pushstring(L, argv[i]); - lua_rawset(L, -3); + lua_rawseti(L, -2, i - n); } return narg; } -- cgit v1.2.3-55-g6feb