mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
Better handling of size limit when resizing a table
Avoid silent conversions from int to unsigned int when calling 'luaH_resize'; avoid silent conversions from lua_Integer to int in 'table.create'; MAXASIZE corrected for the new implementation of arrays; 'luaH_resize' checks explicitly whether new size respects MAXASIZE. (Even constructors were bypassing that check.)
This commit is contained in:
parent
c31d6774ac
commit
0c9bec0d38
6 changed files with 53 additions and 37 deletions
|
|
@ -3234,7 +3234,7 @@ Values at other positions are not affected.
|
|||
|
||||
}
|
||||
|
||||
@APIEntry{void lua_createtable (lua_State *L, int nseq, int nrec);|
|
||||
@APIEntry{void lua_createtable (lua_State *L, unsigned nseq, unsigned nrec);|
|
||||
@apii{0,1,m}
|
||||
|
||||
Creates a new empty table and pushes it onto the stack.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue