aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ltablib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ltablib.c b/ltablib.c
index f051742d..d5c3e37c 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltablib.c,v 1.24 2004/05/10 17:50:51 roberto Exp roberto $ 2** $Id: ltablib.c,v 1.25 2004/05/10 18:06:14 roberto Exp roberto $
3** Library for Table Manipulation 3** Library for Table Manipulation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -63,7 +63,8 @@ static int luaB_getn (lua_State *L) {
63static int luaB_setn (lua_State *L) { 63static int luaB_setn (lua_State *L) {
64 luaL_checktype(L, 1, LUA_TTABLE); 64 luaL_checktype(L, 1, LUA_TTABLE);
65 luaL_setn(L, 1, luaL_checkint(L, 2)); 65 luaL_setn(L, 1, luaL_checkint(L, 2));
66 return 0; 66 lua_pushvalue(L, 1);
67 return 1;
67} 68}
68 69
69 70