summaryrefslogtreecommitdiff
path: root/src/llex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/llex.c')
-rw-r--r--src/llex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llex.c b/src/llex.c
index 9918b2f4..f3022df5 100644
--- a/src/llex.c
+++ b/src/llex.c
@@ -1,5 +1,5 @@
/*
-** $Id: llex.c,v 2.18 2006/01/23 20:06:19 roberto Exp $
+** $Id: llex.c,v 2.19 2006/02/06 18:28:16 roberto Exp $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@@ -166,7 +166,7 @@ static int check_next (LexState *ls, const char *set) {
static void buffreplace (LexState *ls, char from, char to) {
- int n = luaZ_bufflen(ls->buff);
+ size_t n = luaZ_bufflen(ls->buff);
char *p = luaZ_buffer(ls->buff);
while (n--)
if (p[n] == from) p[n] = to;