aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lgc.c2
-rw-r--r--lstate.c4
-rw-r--r--lstate.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/lgc.c b/lgc.c
index a43cc6a8..7922bc08 100644
--- a/lgc.c
+++ b/lgc.c
@@ -132,7 +132,7 @@ static size_t objsize (GCObject *o) {
132 return luaF_protosize(gco2p(o)); 132 return luaF_protosize(gco2p(o));
133 } 133 }
134 case LUA_VTHREAD: { 134 case LUA_VTHREAD: {
135 return luaE_statesize(gco2th(o)); 135 return luaE_threadsize(gco2th(o));
136 } 136 }
137 case LUA_VSHRSTR: { 137 case LUA_VSHRSTR: {
138 TString *ts = gco2ts(o); 138 TString *ts = gco2ts(o);
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) {
257} 257}
258 258
259 259
260size_t luaE_statesize (lua_State *L) { 260size_t luaE_threadsize (lua_State *L) {
261 size_t sz = sizeof(LG) + cast_uint(L->nci) * sizeof(CallInfo); 261 size_t sz = sizeof(LX) + cast_uint(L->nci) * sizeof(CallInfo);
262 if (L->stack.p != NULL) 262 if (L->stack.p != NULL)
263 sz += cast_uint(stacksize(L) + EXTRA_STACK) * sizeof(StackValue); 263 sz += cast_uint(stacksize(L) + EXTRA_STACK) * sizeof(StackValue);
264 return sz; 264 return sz;
diff --git a/lstate.h b/lstate.h
index e2108668..a1b463c6 100644
--- a/lstate.h
+++ b/lstate.h
@@ -416,7 +416,7 @@ union GCUnion {
416 416
417LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); 417LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt);
418LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); 418LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1);
419LUAI_FUNC size_t luaE_statesize (lua_State *L); 419LUAI_FUNC size_t luaE_threadsize (lua_State *L);
420LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L); 420LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L);
421LUAI_FUNC void luaE_shrinkCI (lua_State *L); 421LUAI_FUNC void luaE_shrinkCI (lua_State *L);
422LUAI_FUNC void luaE_checkcstack (lua_State *L); 422LUAI_FUNC void luaE_checkcstack (lua_State *L);