diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-04-01 11:39:55 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-04-01 11:39:55 -0300 |
commit | 607be77ec8d2b6062077772a55831a5aca16fb2d (patch) | |
tree | 160fdbdaab4cf577e94e2f1f78a4d717a26bfcd1 /lutf8lib.c | |
parent | 0d745ed04c93e907e9f2bd8c21ce1ca27bba9b6a (diff) | |
download | lua-607be77ec8d2b6062077772a55831a5aca16fb2d.tar.gz lua-607be77ec8d2b6062077772a55831a5aca16fb2d.tar.bz2 lua-607be77ec8d2b6062077772a55831a5aca16fb2d.zip |
some details to avoid warnings
Diffstat (limited to 'lutf8lib.c')
-rw-r--r-- | lutf8lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lutf8lib.c,v 1.3 2014/03/20 14:11:00 roberto Exp roberto $ | 2 | ** $Id: lutf8lib.c,v 1.4 2014/03/20 19:36:02 roberto Exp roberto $ |
3 | ** Standard library for UTF-8 manipulation | 3 | ** Standard library for UTF-8 manipulation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -187,7 +187,7 @@ static int byteoffset (lua_State *L) { | |||
187 | static int iter_aux (lua_State *L) { | 187 | static int iter_aux (lua_State *L) { |
188 | size_t len; | 188 | size_t len; |
189 | const char *s = luaL_checklstring(L, 1, &len); | 189 | const char *s = luaL_checklstring(L, 1, &len); |
190 | int n = lua_tointeger(L, 2) - 1; | 190 | lua_Integer n = lua_tointeger(L, 2) - 1; |
191 | if (n < 0) /* first iteration? */ | 191 | if (n < 0) /* first iteration? */ |
192 | n = 0; /* start from here */ | 192 | n = 0; /* start from here */ |
193 | else if (n < (lua_Integer)len) { | 193 | else if (n < (lua_Integer)len) { |