aboutsummaryrefslogtreecommitdiff
path: root/lutf8lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lutf8lib.c')
-rw-r--r--lutf8lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lutf8lib.c b/lutf8lib.c
index def7e869..73e86a4a 100644
--- a/lutf8lib.c
+++ b/lutf8lib.c
@@ -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) {
187static int iter_aux (lua_State *L) { 187static 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) {