This commit is contained in:
GRH 2025-04-02 22:26:44 +03:00 committed by GitHub
commit 83e80a6796
Signed by: DevComp
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -443,7 +443,7 @@ static void shrinkstack(lua_State* L)
if (3 * size_t(s_used) < size_t(L->stacksize) && 2 * (BASIC_STACK_SIZE + EXTRA_STACK) < L->stacksize)
luaD_reallocstack(L, L->stacksize / 2, 0); // still big enough...
condhardstacktests(luaD_reallocstack(L, s_used));
condhardstacktests(luaD_reallocstack(L, s_used, 0));
}
/*

View file

@ -76,7 +76,7 @@
#define luaC_checkGC(L) \
{ \
condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK)); \
condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK, 0)); \
if (luaC_needsGC(L)) \
{ \
condhardmemtests(luaC_validate(L), 1); \