summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2024-02-27 15:09:18 -0500
committerPeter Zhu <peter@peterzhu.ca>2024-02-27 21:11:11 -0500
commite8e2415bb32c7e9f2a55d218a97cb5f9474b2898 (patch)
tree6f997267ca6952b39f9a34777d6e9dd61463db79 /gc.c
parent95e55e9ae4a446a62db21e2ea91c54d20fbdcbdc (diff)
Use RB_SPECIAL_CONST_P instead of rb_special_const_p
rb_special_const_p returns a VALUE (Qtrue or Qfalse), so we shouldn't assume that Qfalse is 0. We should instead use RB_SPECIAL_CONST_P.
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index d598a7deac..df61246d46 100644
--- a/gc.c
+++ b/gc.c
@@ -4398,7 +4398,7 @@ is_live_object(rb_objspace_t *objspace, VALUE ptr)
static inline int
is_markable_object(VALUE obj)
{
- if (rb_special_const_p(obj)) return FALSE; /* special const is not markable */
+ if (RB_SPECIAL_CONST_P(obj)) return FALSE; /* special const is not markable */
check_rvalue_consistency(obj);
return TRUE;
}