aboutsummaryrefslogtreecommitdiff
path: root/ltablib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltablib.c')
-rw-r--r--ltablib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltablib.c b/ltablib.c
index 5a78c15b..7bbc3a07 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltablib.c,v 1.95 2018/02/27 18:47:32 roberto Exp roberto $ 2** $Id: ltablib.c,v 1.96 2018/03/16 14:18:18 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*/
@@ -95,8 +95,8 @@ static int tremove (lua_State *L) {
95 lua_geti(L, 1, pos + 1); 95 lua_geti(L, 1, pos + 1);
96 lua_seti(L, 1, pos); /* t[pos] = t[pos + 1] */ 96 lua_seti(L, 1, pos); /* t[pos] = t[pos + 1] */
97 } 97 }
98 lua_pushinteger(L, pos); 98 lua_pushnil(L);
99 lua_removekey(L, 1); /* remove entry t[pos] */ 99 lua_seti(L, 1, pos); /* remove entry t[pos] */
100 return 1; 100 return 1;
101} 101}
102 102