aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-02-06 16:28:16 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-02-06 16:28:16 -0200
commit6316a866a3aa55f90c44553542a552e64b56aa68 (patch)
tree3020eef0187dc02dcda951eb1034c6676eb84997 /llex.c
parentea2cc2bc47048cad7e33653dd24354b724e842d4 (diff)
downloadlua-6316a866a3aa55f90c44553542a552e64b56aa68.tar.gz
lua-6316a866a3aa55f90c44553542a552e64b56aa68.tar.bz2
lua-6316a866a3aa55f90c44553542a552e64b56aa68.zip
compiler warning
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llex.c b/llex.c
index 40eb7654..60f34ed8 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 2.17 2005/12/22 16:19:56 roberto Exp roberto $ 2** $Id: llex.c,v 2.18 2006/01/23 20:06:19 roberto Exp roberto $
3** Lexical Analyzer 3** Lexical Analyzer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -166,7 +166,7 @@ static int check_next (LexState *ls, const char *set) {
166 166
167 167
168static void buffreplace (LexState *ls, char from, char to) { 168static void buffreplace (LexState *ls, char from, char to) {
169 int n = luaZ_bufflen(ls->buff); 169 size_t n = luaZ_bufflen(ls->buff);
170 char *p = luaZ_buffer(ls->buff); 170 char *p = luaZ_buffer(ls->buff);
171 while (n--) 171 while (n--)
172 if (p[n] == from) p[n] = to; 172 if (p[n] == from) p[n] = to;