summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2024-02-26 15:34:11 -0500
committerPeter Zhu <peter@peterzhu.ca>2024-02-27 10:03:42 -0500
commit2396b7a62fc12ef70933872667020b3784cb9e2e (patch)
treef70cb38f40cf22b0ecef2b401cacc136b1025782
parent9ba53cb6886fcecf288d9313720987df389aa46c (diff)
Change is_live_object to return a bool
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 58e79e5bc0..8fdf96503a 100644
--- a/gc.c
+++ b/gc.c
@@ -4394,7 +4394,7 @@ is_garbage_object(rb_objspace_t *objspace, VALUE ptr)
}
}
-static inline int
+static inline bool
is_live_object(rb_objspace_t *objspace, VALUE ptr)
{
switch (BUILTIN_TYPE(ptr)) {