diff options
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) */ |