aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-06-22 11:41:48 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-06-22 11:41:48 -0300
commitab6a94952215b1f66436d8eeebded1dad9fa5409 (patch)
treeba66254537defc76602ce351d962b899ddfe1b29 /lstrlib.c
parent86e8039a72646cd9192fd08a6f1771c90b872ff6 (diff)
parentea39042e13645f63713425c05cc9ee4cfdcf0a40 (diff)
downloadlua-ab6a94952215b1f66436d8eeebded1dad9fa5409.tar.gz
lua-ab6a94952215b1f66436d8eeebded1dad9fa5409.tar.bz2
lua-ab6a94952215b1f66436d8eeebded1dad9fa5409.zip
Merge branch 'master' into nextversion
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lstrlib.c b/lstrlib.c
index ce07d9bc..e29c09b9 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -571,7 +571,7 @@ static const char *match_capture (MatchState *ms, const char *s, int l) {
571static const char *match (MatchState *ms, const char *s, const char *p) { 571static const char *match (MatchState *ms, const char *s, const char *p) {
572 if (l_unlikely(ms->matchdepth-- == 0)) 572 if (l_unlikely(ms->matchdepth-- == 0))
573 luaL_error(ms->L, "pattern too complex"); 573 luaL_error(ms->L, "pattern too complex");
574 init: /* using goto's to optimize tail recursion */ 574 init: /* using goto to optimize tail recursion */
575 if (p != ms->p_end) { /* end of pattern? */ 575 if (p != ms->p_end) { /* end of pattern? */
576 switch (*p) { 576 switch (*p) {
577 case '(': { /* start capture */ 577 case '(': { /* start capture */