diff options
author | Li Jin <dragon-fly@qq.com> | 2022-12-02 10:40:09 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-12-02 10:40:09 +0800 |
commit | 298b18dbe852300199cc529c942a181bead5f135 (patch) | |
tree | f4b5ae89b6920fa0a12c693118f85334f19754f8 /src/3rdParty/lua/llex.c | |
parent | a6a65ba26a9d320611abcbfba49fa724edfb4dad (diff) | |
download | yuescript-298b18dbe852300199cc529c942a181bead5f135.tar.gz yuescript-298b18dbe852300199cc529c942a181bead5f135.tar.bz2 yuescript-298b18dbe852300199cc529c942a181bead5f135.zip |
update Lua.
Diffstat (limited to 'src/3rdParty/lua/llex.c')
-rw-r--r-- | src/3rdParty/lua/llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdParty/lua/llex.c b/src/3rdParty/lua/llex.c index e991517..b0dc0ac 100644 --- a/src/3rdParty/lua/llex.c +++ b/src/3rdParty/lua/llex.c | |||
@@ -138,12 +138,12 @@ TString *luaX_newstring (LexState *ls, const char *str, size_t l) { | |||
138 | if (!ttisnil(o)) /* string already present? */ | 138 | if (!ttisnil(o)) /* string already present? */ |
139 | ts = keystrval(nodefromval(o)); /* get saved copy */ | 139 | ts = keystrval(nodefromval(o)); /* get saved copy */ |
140 | else { /* not in use yet */ | 140 | else { /* not in use yet */ |
141 | TValue *stv = s2v(L->top++); /* reserve stack space for string */ | 141 | TValue *stv = s2v(L->top.p++); /* reserve stack space for string */ |
142 | setsvalue(L, stv, ts); /* temporarily anchor the string */ | 142 | setsvalue(L, stv, ts); /* temporarily anchor the string */ |
143 | luaH_finishset(L, ls->h, stv, o, stv); /* t[string] = string */ | 143 | luaH_finishset(L, ls->h, stv, o, stv); /* t[string] = string */ |
144 | /* table is not a metatable, so it does not need to invalidate cache */ | 144 | /* table is not a metatable, so it does not need to invalidate cache */ |
145 | luaC_checkGC(L); | 145 | luaC_checkGC(L); |
146 | L->top--; /* remove string from stack */ | 146 | L->top.p--; /* remove string from stack */ |
147 | } | 147 | } |
148 | return ts; | 148 | return ts; |
149 | } | 149 | } |