diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-02-06 16:28:16 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-02-06 16:28:16 -0200 |
| commit | 6316a866a3aa55f90c44553542a552e64b56aa68 (patch) | |
| tree | 3020eef0187dc02dcda951eb1034c6676eb84997 | |
| parent | ea2cc2bc47048cad7e33653dd24354b724e842d4 (diff) | |
| download | lua-6316a866a3aa55f90c44553542a552e64b56aa68.tar.gz lua-6316a866a3aa55f90c44553542a552e64b56aa68.tar.bz2 lua-6316a866a3aa55f90c44553542a552e64b56aa68.zip | |
compiler warning
| -rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | ||
| 168 | static void buffreplace (LexState *ls, char from, char to) { | 168 | static 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; |
