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 /loslib.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 'loslib.c')
-rw-r--r-- | loslib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -275,7 +275,7 @@ static int getfield (lua_State *L, const char *key, int d, int delta) { | |||
275 | static const char *checkoption (lua_State *L, const char *conv, | 275 | static const char *checkoption (lua_State *L, const char *conv, |
276 | ptrdiff_t convlen, char *buff) { | 276 | ptrdiff_t convlen, char *buff) { |
277 | const char *option = LUA_STRFTIMEOPTIONS; | 277 | const char *option = LUA_STRFTIMEOPTIONS; |
278 | int oplen = 1; /* length of options being checked */ | 278 | unsigned oplen = 1; /* length of options being checked */ |
279 | for (; *option != '\0' && oplen <= convlen; option += oplen) { | 279 | for (; *option != '\0' && oplen <= convlen; option += oplen) { |
280 | if (*option == '|') /* next block? */ | 280 | if (*option == '|') /* next block? */ |
281 | oplen++; /* will check options with next length (+1) */ | 281 | oplen++; /* will check options with next length (+1) */ |