aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-27 13:32:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-27 13:32:59 -0300
commit0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b (patch)
tree0ac634fed90877130b1f102bf4075af999de2158 /lua.c
parent15231d4fb2f6984b25e0353ff46eda1a180b686d (diff)
downloadlua-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua.c b/lua.c
index 3d807c98..9693ad68 100644
--- a/lua.c
+++ b/lua.c
@@ -185,7 +185,7 @@ static void print_version (void) {
185static void createargtable (lua_State *L, char **argv, int argc, int script) { 185static 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);