diff options
Diffstat (limited to 'lstrlib.c')
| -rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstrlib.c,v 1.47 2000/08/28 17:57:04 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.48 2000/08/29 20:43:28 roberto Exp roberto $ |
| 3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -265,7 +265,7 @@ static const char *max_expand (lua_State *L, const char *s, const char *p, | |||
| 265 | long i = 0; /* counts maximum expand for item */ | 265 | long i = 0; /* counts maximum expand for item */ |
| 266 | while ((s+i)<cap->src_end && luaI_singlematch((unsigned char)*(s+i), p, ep)) | 266 | while ((s+i)<cap->src_end && luaI_singlematch((unsigned char)*(s+i), p, ep)) |
| 267 | i++; | 267 | i++; |
| 268 | /* keeps trying to match mith the maximum repetitions */ | 268 | /* keeps trying to match with the maximum repetitions */ |
| 269 | while (i>=0) { | 269 | while (i>=0) { |
| 270 | const char *res = match(L, (s+i), ep+1, cap); | 270 | const char *res = match(L, (s+i), ep+1, cap); |
| 271 | if (res) return res; | 271 | if (res) return res; |
