From a04e0ffdb9be42a77b5657f46cac8d7faa5a0f43 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 6 Sep 2024 14:38:39 -0300 Subject: Rename of fields in global state that control GC All fields in the global state that control the pace of the garbage collector prefixed with 'GC'. --- lapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index 1f4e9f96..98d23665 100644 --- a/lapi.c +++ b/lapi.c @@ -1190,11 +1190,11 @@ LUA_API int lua_gc (lua_State *L, int what, ...) { } case LUA_GCCOUNT: { /* GC values are expressed in Kbytes: #bytes/2^10 */ - res = cast_int(g->totalbytes >> 10); + res = cast_int(g->GCtotalbytes >> 10); break; } case LUA_GCCOUNTB: { - res = cast_int(g->totalbytes & 0x3ff); + res = cast_int(g->GCtotalbytes & 0x3ff); break; } case LUA_GCSTEP: { -- cgit v1.2.3-55-g6feb