diff options
author | Lua Team <team@lua.org> | 2011-11-30 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2011-11-30 12:00:00 +0000 |
commit | ac1beaea25f1fec341e1edb168c63ac7131a6bdd (patch) | |
tree | 07b408b92516a459a685fdc1aca30694663051f3 /src/ltablib.c | |
parent | dfa489618335f21b74e1b2040a64b28dcbe048a6 (diff) | |
download | lua-github-5.2.0-rc3.tar.gz |
Lua 5.2.0-rc35.2.0-rc3
Diffstat (limited to 'src/ltablib.c')
-rw-r--r-- | src/ltablib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ltablib.c b/src/ltablib.c index 5c3abc35..a52add03 100644 --- a/src/ltablib.c +++ b/src/ltablib.c @@ -1,5 +1,5 @@ /* -** $Id: ltablib.c,v 1.62 2011/09/30 12:45:45 roberto Exp $ +** $Id: ltablib.c,v 1.63 2011/11/28 17:26:30 roberto Exp $ ** Library for Table Manipulation ** See Copyright Notice in lua.h */ @@ -129,8 +129,7 @@ static int pack (lua_State *L) { for (i = n; i >= 2; i--) /* assign other elements */ lua_rawseti(L, 1, i); } - lua_pushinteger(L, n); - return 2; /* return table and number of elements */ + return 1; /* return table */ } |