aboutsummaryrefslogtreecommitdiff
path: root/loslib.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 /loslib.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 'loslib.c')
-rw-r--r--loslib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loslib.c b/loslib.c
index 8280331b..4623ad5e 100644
--- a/loslib.c
+++ b/loslib.c
@@ -275,7 +275,7 @@ static int getfield (lua_State *L, const char *key, int d, int delta) {
275static const char *checkoption (lua_State *L, const char *conv, 275static 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) */