diff options
Diffstat (limited to 'lstrlib.c')
| -rw-r--r-- | lstrlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -968,7 +968,7 @@ static int str_gsub (lua_State *L) { | |||
| 968 | reprepstate(&ms); /* (re)prepare state for new match */ | 968 | reprepstate(&ms); /* (re)prepare state for new match */ |
| 969 | if ((e = match(&ms, src, p)) != NULL && e != lastmatch) { /* match? */ | 969 | if ((e = match(&ms, src, p)) != NULL && e != lastmatch) { /* match? */ |
| 970 | n++; | 970 | n++; |
| 971 | changed = add_value(&ms, &b, src, e, tr) | changed; | 971 | changed = add_value(&ms, &b, src, e, tr) || changed; |
| 972 | src = lastmatch = e; | 972 | src = lastmatch = e; |
| 973 | } | 973 | } |
| 974 | else if (src < ms.src_end) /* otherwise, skip one character */ | 974 | else if (src < ms.src_end) /* otherwise, skip one character */ |
