Change is_live_object to return a bool
This commit is contained in:
parent
9ba53cb688
commit
2396b7a62f
2
gc.c
2
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)
|
is_live_object(rb_objspace_t *objspace, VALUE ptr)
|
||||||
{
|
{
|
||||||
switch (BUILTIN_TYPE(ptr)) {
|
switch (BUILTIN_TYPE(ptr)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user