summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-04-16 14:06:36 -0400
committerPeter Zhu <[email protected]>2024-04-17 09:49:11 -0400
commit209e2f277e5d528a8bbbccbb5fac6ca087ed2335 (patch)
tree9c21d117c29d7de0ab3a29531a766980b73dc399 /gc.c
parent2470565993680059e0fd1ee1c3304c989e957122 (diff)
Don't allow T_NIL in gc_is_moveable_obj
gc_is_moveable_obj is only given GC managed objects, and T_NIL cannot be a GC managed type.
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 1f5d0fe365..044ce2c984 100644
--- a/gc.c
+++ b/gc.c
@@ -9511,7 +9511,6 @@ gc_is_moveable_obj(rb_objspace_t *objspace, VALUE obj)
switch (BUILTIN_TYPE(obj)) {
case T_NONE:
- case T_NIL:
case T_MOVED:
case T_ZOMBIE:
return FALSE;