From 52aa2b5d24c560fb4d7a642971571ff9cbeabfcd Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 13 Mar 2024 09:20:34 -0300 Subject: Details - 'unsigned int' -> 'unsigned' - Some explicit casts to avoid warnings - Test avoids printing the value of 'fail' (which may not be nil) --- ltablib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltablib.c') diff --git a/ltablib.c b/ltablib.c index 2ba31a4f..4c3f6900 100644 --- a/ltablib.c +++ b/ltablib.c @@ -63,7 +63,7 @@ static int tcreate (lua_State *L) { lua_Unsigned sizerest = (lua_Unsigned)luaL_optinteger(L, 2, 0); luaL_argcheck(L, sizeseq <= UINT_MAX, 1, "out of range"); luaL_argcheck(L, sizerest <= UINT_MAX, 2, "out of range"); - lua_createtable(L, sizeseq, sizerest); + lua_createtable(L, (unsigned)sizeseq, (unsigned)sizerest); return 1; } -- cgit v1.2.3-55-g6feb