summaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-12 16:13:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-12 16:13:50 -0300
commit1fb4d539254b67e7e35ed698250c66d1edff0e08 (patch)
tree8f48b7ca736a7fb02834bcfac1415cd43307f529 /ltests.c
parentf6aab3ec1f111cd8d968bdcb7ca800e93b819d24 (diff)
downloadlua-github-1fb4d539254b67e7e35ed698250c66d1edff0e08.tar.gz
OP_NEWTABLE keeps exact size of arrays
OP_NEWTABLE is followed by an OP_EXTRAARG, so that it can keep the exact size of the array part of the table to be created. (Functions 'luaO_int2fb'/'luaO_fb2int' were removed.)
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/ltests.c b/ltests.c
index dc830657..cb8c422a 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1103,14 +1103,6 @@ static int doremote (lua_State *L) {
}
-static int int2fb_aux (lua_State *L) {
- int b = luaO_int2fb((unsigned int)luaL_checkinteger(L, 1));
- lua_pushinteger(L, b);
- lua_pushinteger(L, (unsigned int)luaO_fb2int(b));
- return 2;
-}
-
-
static int log2_aux (lua_State *L) {
unsigned int x = (unsigned int)luaL_checkinteger(L, 1);
lua_pushinteger(L, luaO_ceillog2(x));
@@ -1780,7 +1772,6 @@ static const struct luaL_Reg tests_funcs[] = {
{"pobj", gc_printobj},
{"getref", getref},
{"hash", hash_query},
- {"int2fb", int2fb_aux},
{"log2", log2_aux},
{"limits", get_limits},
{"listcode", listcode},