summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2025-08-15 11:09:13 -0400
committerPeter Zhu <peter@peterzhu.ca>2025-08-18 09:35:05 -0400
commit70378db2fff0b1bc39a7d2b011da90486579fb0e (patch)
tree20c0d2e13e636e9eff724d7b0c945e5f407e3d25
parent7ddc53bc0c57b1c079e40a74d233f537111b3e92 (diff)
Remove impossible case in rb_raw_obj_info_buitin_type for array
Since we handle embedded arrays in the if statement above, we don't need to handle it here.
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 160398f9a6..aa3140ed47 100644
--- a/gc.c
+++ b/gc.c
@@ -4709,7 +4709,7 @@ rb_raw_obj_info_buitin_type(char *const buff, const size_t buff_size, const VALU
C(ARY_EMBED_P(obj), "E"),
C(ARY_SHARED_P(obj), "S"),
RARRAY_LEN(obj),
- ARY_EMBED_P(obj) ? -1L : RARRAY(obj)->as.heap.aux.capa,
+ RARRAY(obj)->as.heap.aux.capa,
(void *)RARRAY_CONST_PTR(obj));
}
break;