diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-03-13 09:20:34 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-03-13 09:20:34 -0300 |
| commit | 52aa2b5d24c560fb4d7a642971571ff9cbeabfcd (patch) | |
| tree | a95b9c94c3a526ad85ebb26f910692d93b20888b /ltablib.c | |
| parent | cc2b66c85687b095e68304c010b59851ca4093e1 (diff) | |
| download | lua-52aa2b5d24c560fb4d7a642971571ff9cbeabfcd.tar.gz lua-52aa2b5d24c560fb4d7a642971571ff9cbeabfcd.tar.bz2 lua-52aa2b5d24c560fb4d7a642971571ff9cbeabfcd.zip | |
Details
- 'unsigned int' -> 'unsigned'
- Some explicit casts to avoid warnings
- Test avoids printing the value of 'fail' (which may not be nil)
Diffstat (limited to 'ltablib.c')
| -rw-r--r-- | ltablib.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -63,7 +63,7 @@ static int tcreate (lua_State *L) { | |||
| 63 | lua_Unsigned sizerest = (lua_Unsigned)luaL_optinteger(L, 2, 0); | 63 | lua_Unsigned sizerest = (lua_Unsigned)luaL_optinteger(L, 2, 0); |
| 64 | luaL_argcheck(L, sizeseq <= UINT_MAX, 1, "out of range"); | 64 | luaL_argcheck(L, sizeseq <= UINT_MAX, 1, "out of range"); |
| 65 | luaL_argcheck(L, sizerest <= UINT_MAX, 2, "out of range"); | 65 | luaL_argcheck(L, sizerest <= UINT_MAX, 2, "out of range"); |
| 66 | lua_createtable(L, sizeseq, sizerest); | 66 | lua_createtable(L, (unsigned)sizeseq, (unsigned)sizerest); |
| 67 | return 1; | 67 | return 1; |
| 68 | } | 68 | } |
| 69 | 69 | ||
