- 'unsigned int' -> 'unsigned'
- Some explicit casts to avoid warnings
- Test avoids printing the value of 'fail' (which may not be nil)
This commit is contained in:
Roberto Ierusalimschy
2024-03-13 09:20:34 -03:00
parent cc2b66c856
commit 52aa2b5d24
4 changed files with 5 additions and 6 deletions

View File

@@ -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;
}