aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-02-07 13:39:54 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-02-07 13:39:54 -0300
commit0c9bec0d38ed3d2c45d7be4e764a0bcffef98be1 (patch)
tree05fd1ba56705dc0a1728e1bedda7961cc96414c1 /manual
parentc31d6774ac7db4cfbc548ce507ae65ab6036f873 (diff)
downloadlua-0c9bec0d38ed3d2c45d7be4e764a0bcffef98be1.tar.gz
lua-0c9bec0d38ed3d2c45d7be4e764a0bcffef98be1.tar.bz2
lua-0c9bec0d38ed3d2c45d7be4e764a0bcffef98be1.zip
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.)
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/manual.of b/manual/manual.of
index aaaf15b7..cdd54f66 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -3234,7 +3234,7 @@ Values at other positions are not affected.
3234 3234
3235} 3235}
3236 3236
3237@APIEntry{void lua_createtable (lua_State *L, int nseq, int nrec);| 3237@APIEntry{void lua_createtable (lua_State *L, unsigned nseq, unsigned nrec);|
3238@apii{0,1,m} 3238@apii{0,1,m}
3239 3239
3240Creates a new empty table and pushes it onto the stack. 3240Creates a new empty table and pushes it onto the stack.