Small bug in 'luaE_luaE_statesize'

Plus, function was renamed to 'luaE_threadsize'.
This commit is contained in:
Roberto Ierusalimschy
2024-10-21 15:30:35 -03:00
parent 258355734d
commit 9b01da97e3
3 changed files with 4 additions and 4 deletions

2
lgc.c
View File

@@ -132,7 +132,7 @@ static size_t objsize (GCObject *o) {
return luaF_protosize(gco2p(o));
}
case LUA_VTHREAD: {
return luaE_statesize(gco2th(o));
return luaE_threadsize(gco2th(o));
}
case LUA_VSHRSTR: {
TString *ts = gco2ts(o);