aboutsummaryrefslogtreecommitdiff
path: root/src/lua/lundump.c
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-09-11 15:31:51 +0800
committerLi Jin <dragon-fly@qq.com>2020-09-11 15:31:51 +0800
commit85b9ec82247f6e06b802188af35d09d3159625df (patch)
tree487152fb9639a74e323f7db962f558ba0514322d /src/lua/lundump.c
parentdfd4e3b2b2abc0137d26ed3df303a398741bb6a0 (diff)
downloadyuescript-85b9ec82247f6e06b802188af35d09d3159625df.tar.gz
yuescript-85b9ec82247f6e06b802188af35d09d3159625df.tar.bz2
yuescript-85b9ec82247f6e06b802188af35d09d3159625df.zip
update Lua.
Diffstat (limited to 'src/lua/lundump.c')
-rw-r--r--src/lua/lundump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/lundump.c b/src/lua/lundump.c
index cb124d6..5aa55c4 100644
--- a/src/lua/lundump.c
+++ b/src/lua/lundump.c
@@ -120,7 +120,10 @@ static TString *loadStringN (LoadState *S, Proto *p) {
120 } 120 }
121 else { /* long string */ 121 else { /* long string */
122 ts = luaS_createlngstrobj(L, size); /* create string */ 122 ts = luaS_createlngstrobj(L, size); /* create string */
123 setsvalue2s(L, L->top, ts); /* anchor it ('loadVector' can GC) */
124 luaD_inctop(L);
123 loadVector(S, getstr(ts), size); /* load directly in final place */ 125 loadVector(S, getstr(ts), size); /* load directly in final place */
126 L->top--; /* pop string */
124 } 127 }
125 luaC_objbarrier(L, p, ts); 128 luaC_objbarrier(L, p, ts);
126 return ts; 129 return ts;