diff options
author | Li Jin <dragon-fly@qq.com> | 2023-08-24 09:21:38 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-08-24 09:21:38 +0800 |
commit | cfcea12ba0e6a40d7c04ac64c75563db0896985c (patch) | |
tree | 8ee7c6d9cd5f7b60fd9bda035b703cc9969ab678 /src/3rdParty/lua/lstrlib.c | |
parent | eb48c686a7ab5bd3f3f3a8628ed0423872a932c6 (diff) | |
download | yuescript-cfcea12ba0e6a40d7c04ac64c75563db0896985c.tar.gz yuescript-cfcea12ba0e6a40d7c04ac64c75563db0896985c.tar.bz2 yuescript-cfcea12ba0e6a40d7c04ac64c75563db0896985c.zip |
update Lua 5.4.
Diffstat (limited to 'src/3rdParty/lua/lstrlib.c')
-rw-r--r-- | src/3rdParty/lua/lstrlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdParty/lua/lstrlib.c b/src/3rdParty/lua/lstrlib.c index 0b4fdbb..0316716 100644 --- a/src/3rdParty/lua/lstrlib.c +++ b/src/3rdParty/lua/lstrlib.c | |||
@@ -570,7 +570,7 @@ static const char *match_capture (MatchState *ms, const char *s, int l) { | |||
570 | static const char *match (MatchState *ms, const char *s, const char *p) { | 570 | static const char *match (MatchState *ms, const char *s, const char *p) { |
571 | if (l_unlikely(ms->matchdepth-- == 0)) | 571 | if (l_unlikely(ms->matchdepth-- == 0)) |
572 | luaL_error(ms->L, "pattern too complex"); | 572 | luaL_error(ms->L, "pattern too complex"); |
573 | init: /* using goto's to optimize tail recursion */ | 573 | init: /* using goto to optimize tail recursion */ |
574 | if (p != ms->p_end) { /* end of pattern? */ | 574 | if (p != ms->p_end) { /* end of pattern? */ |
575 | switch (*p) { | 575 | switch (*p) { |
576 | case '(': { /* start capture */ | 576 | case '(': { /* start capture */ |