From 9b01da97e3a8f2df9acbd3b86af50e4040e9d914 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 21 Oct 2024 15:30:35 -0300 Subject: Small bug in 'luaE_luaE_statesize' Plus, function was renamed to 'luaE_threadsize'. --- lstate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index d6b9c90f..a8db9477 100644 --- a/lstate.c +++ b/lstate.c @@ -257,8 +257,8 @@ static void preinit_thread (lua_State *L, global_State *g) { } -size_t luaE_statesize (lua_State *L) { - size_t sz = sizeof(LG) + cast_uint(L->nci) * sizeof(CallInfo); +size_t luaE_threadsize (lua_State *L) { + size_t sz = sizeof(LX) + cast_uint(L->nci) * sizeof(CallInfo); if (L->stack.p != NULL) sz += cast_uint(stacksize(L) + EXTRA_STACK) * sizeof(StackValue); return sz; -- cgit v1.2.3-55-g6feb