diff options
Diffstat (limited to 'lstrlib.c')
| -rw-r--r-- | lstrlib.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -757,7 +757,6 @@ static int nospecials (const char *p, size_t l) { | |||
| 757 | static void prepstate (MatchState *ms, lua_State *L, | 757 | static void prepstate (MatchState *ms, lua_State *L, |
| 758 | const char *s, size_t ls, const char *p, size_t lp) { | 758 | const char *s, size_t ls, const char *p, size_t lp) { |
| 759 | ms->L = L; | 759 | ms->L = L; |
| 760 | ms->matchdepth = MAXCCALLS; | ||
| 761 | ms->src_init = s; | 760 | ms->src_init = s; |
| 762 | ms->src_end = s + ls; | 761 | ms->src_end = s + ls; |
| 763 | ms->p_end = p + lp; | 762 | ms->p_end = p + lp; |
| @@ -765,8 +764,8 @@ static void prepstate (MatchState *ms, lua_State *L, | |||
| 765 | 764 | ||
| 766 | 765 | ||
| 767 | static void reprepstate (MatchState *ms) { | 766 | static void reprepstate (MatchState *ms) { |
| 767 | ms->matchdepth = MAXCCALLS; | ||
| 768 | ms->level = 0; | 768 | ms->level = 0; |
| 769 | lua_assert(ms->matchdepth == MAXCCALLS); | ||
| 770 | } | 769 | } |
| 771 | 770 | ||
| 772 | 771 | ||
