diff options
Diffstat (limited to 'lib/lua/src')
-rw-r--r-- | lib/lua/src/luacomp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/lua/src/luacomp.c b/lib/lua/src/luacomp.c index 4e2ec24..4781bff 100644 --- a/lib/lua/src/luacomp.c +++ b/lib/lua/src/luacomp.c @@ -1,5 +1,5 @@ /* -** $Id: luacomp.c,v 1.2 2003-12-11 16:53:30 pixel Exp $ +** $Id: luacomp.c,v 1.3 2004-01-26 15:32:51 pixel Exp $ ** Lua compiler (saves bytecodes to files; also list bytecodes) ** See Copyright Notice in lua.h */ @@ -70,8 +70,7 @@ static void strip(lua_State* L, Proto* f) void luacmain(lua_State * L, int stripping, lua_Chunkwriter w, void * uD) { Proto * f; - int i; - f = combine(L, 1); + f = combine(L, lua_gettop(L)); if (stripping) strip(L, f); luaU_dump(L, f, w, uD); |