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/lobject.c | |
parent | a6a65ba26a9d320611abcbfba49fa724edfb4dad (diff) | |
download | yuescript-298b18dbe852300199cc529c942a181bead5f135.tar.gz yuescript-298b18dbe852300199cc529c942a181bead5f135.tar.bz2 yuescript-298b18dbe852300199cc529c942a181bead5f135.zip |
update Lua.
Diffstat (limited to 'src/3rdParty/lua/lobject.c')
-rw-r--r-- | src/3rdParty/lua/lobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/3rdParty/lua/lobject.c b/src/3rdParty/lua/lobject.c index 03e2798..f73ffc6 100644 --- a/src/3rdParty/lua/lobject.c +++ b/src/3rdParty/lua/lobject.c | |||
@@ -413,8 +413,8 @@ typedef struct BuffFS { | |||
413 | */ | 413 | */ |
414 | static void pushstr (BuffFS *buff, const char *str, size_t lstr) { | 414 | static void pushstr (BuffFS *buff, const char *str, size_t lstr) { |
415 | lua_State *L = buff->L; | 415 | lua_State *L = buff->L; |
416 | setsvalue2s(L, L->top, luaS_newlstr(L, str, lstr)); | 416 | setsvalue2s(L, L->top.p, luaS_newlstr(L, str, lstr)); |
417 | L->top++; /* may use one slot from EXTRA_STACK */ | 417 | L->top.p++; /* may use one slot from EXTRA_STACK */ |
418 | if (!buff->pushed) /* no previous string on the stack? */ | 418 | if (!buff->pushed) /* no previous string on the stack? */ |
419 | buff->pushed = 1; /* now there is one */ | 419 | buff->pushed = 1; /* now there is one */ |
420 | else /* join previous string with new one */ | 420 | else /* join previous string with new one */ |
@@ -542,7 +542,7 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) { | |||
542 | addstr2buff(&buff, fmt, strlen(fmt)); /* rest of 'fmt' */ | 542 | addstr2buff(&buff, fmt, strlen(fmt)); /* rest of 'fmt' */ |
543 | clearbuff(&buff); /* empty buffer into the stack */ | 543 | clearbuff(&buff); /* empty buffer into the stack */ |
544 | lua_assert(buff.pushed == 1); | 544 | lua_assert(buff.pushed == 1); |
545 | return svalue(s2v(L->top - 1)); | 545 | return svalue(s2v(L->top.p - 1)); |
546 | } | 546 | } |
547 | 547 | ||
548 | 548 | ||