diff options
author | Peter Zhu <[email protected]> | 2024-04-16 14:06:36 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-04-17 09:49:11 -0400 |
commit | 209e2f277e5d528a8bbbccbb5fac6ca087ed2335 (patch) | |
tree | 9c21d117c29d7de0ab3a29531a766980b73dc399 /gc.c | |
parent | 2470565993680059e0fd1ee1c3304c989e957122 (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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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; |