mirror of
https://github.com/nmap/nmap.git
synced 2026-09-21 07:38:39 +00:00
Update liblua to Lua 5.4.6
This commit is contained in:
parent
c0e172806f
commit
38aa74ae83
42 changed files with 1003 additions and 734 deletions
|
|
@ -93,7 +93,7 @@ static int tremove (lua_State *L) {
|
|||
lua_Integer pos = luaL_optinteger(L, 2, size);
|
||||
if (pos != size) /* validate 'pos' if given */
|
||||
/* check whether 'pos' is in [1, size + 1] */
|
||||
luaL_argcheck(L, (lua_Unsigned)pos - 1u <= (lua_Unsigned)size, 1,
|
||||
luaL_argcheck(L, (lua_Unsigned)pos - 1u <= (lua_Unsigned)size, 2,
|
||||
"position out of bounds");
|
||||
lua_geti(L, 1, pos); /* result = t[pos] */
|
||||
for ( ; pos < size; pos++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue