aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-09-06 14:38:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-09-06 14:38:39 -0300
commita04e0ffdb9be42a77b5657f46cac8d7faa5a0f43 (patch)
treeeb96915b808cf929015452bd08ca1e5c571683ce /lapi.c
parent007b8c7a01eaa97d796561a19c7e9af1ec474495 (diff)
downloadlua-a04e0ffdb9be42a77b5657f46cac8d7faa5a0f43.tar.gz
lua-a04e0ffdb9be42a77b5657f46cac8d7faa5a0f43.tar.bz2
lua-a04e0ffdb9be42a77b5657f46cac8d7faa5a0f43.zip
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'.
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
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, ...) {
1190 } 1190 }
1191 case LUA_GCCOUNT: { 1191 case LUA_GCCOUNT: {
1192 /* GC values are expressed in Kbytes: #bytes/2^10 */ 1192 /* GC values are expressed in Kbytes: #bytes/2^10 */
1193 res = cast_int(g->totalbytes >> 10); 1193 res = cast_int(g->GCtotalbytes >> 10);
1194 break; 1194 break;
1195 } 1195 }
1196 case LUA_GCCOUNTB: { 1196 case LUA_GCCOUNTB: {
1197 res = cast_int(g->totalbytes & 0x3ff); 1197 res = cast_int(g->GCtotalbytes & 0x3ff);
1198 break; 1198 break;
1199 } 1199 }
1200 case LUA_GCSTEP: { 1200 case LUA_GCSTEP: {