diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-07-27 13:32:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-07-27 13:32:59 -0300 |
commit | 0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b (patch) | |
tree | 0ac634fed90877130b1f102bf4075af999de2158 /lua.c | |
parent | 15231d4fb2f6984b25e0353ff46eda1a180b686d (diff) | |
download | lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.tar.gz lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.tar.bz2 lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.zip |
Added gcc option '-Wconversion'
No warnings for standard numerical types. Still pending alternative
numerical types.
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -185,7 +185,7 @@ static void print_version (void) { | |||
185 | static void createargtable (lua_State *L, char **argv, int argc, int script) { | 185 | static void createargtable (lua_State *L, char **argv, int argc, int script) { |
186 | int i, narg; | 186 | int i, narg; |
187 | narg = argc - (script + 1); /* number of positive indices */ | 187 | narg = argc - (script + 1); /* number of positive indices */ |
188 | lua_createtable(L, narg, script + 1); | 188 | lua_createtable(L, cast_uint(narg), cast_uint(script + 1)); |
189 | for (i = 0; i < argc; i++) { | 189 | for (i = 0; i < argc; i++) { |
190 | lua_pushstring(L, argv[i]); | 190 | lua_pushstring(L, argv[i]); |
191 | lua_rawseti(L, -2, i - script); | 191 | lua_rawseti(L, -2, i - script); |