diff options
| -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; |
