aboutsummaryrefslogtreecommitdiff
path: root/ltablib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltablib.c')
-rw-r--r--ltablib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ltablib.c b/ltablib.c
index 868d78fd..e6bc4d04 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -93,7 +93,7 @@ static int tremove (lua_State *L) {
93 lua_Integer pos = luaL_optinteger(L, 2, size); 93 lua_Integer pos = luaL_optinteger(L, 2, size);
94 if (pos != size) /* validate 'pos' if given */ 94 if (pos != size) /* validate 'pos' if given */
95 /* check whether 'pos' is in [1, size + 1] */ 95 /* check whether 'pos' is in [1, size + 1] */
96 luaL_argcheck(L, (lua_Unsigned)pos - 1u <= (lua_Unsigned)size, 1, 96 luaL_argcheck(L, (lua_Unsigned)pos - 1u <= (lua_Unsigned)size, 2,
97 "position out of bounds"); 97 "position out of bounds");
98 lua_geti(L, 1, pos); /* result = t[pos] */ 98 lua_geti(L, 1, pos); /* result = t[pos] */
99 for ( ; pos < size; pos++) { 99 for ( ; pos < size; pos++) {