Skip to content

Commit 70378db

Browse files
committed
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.
1 parent 7ddc53b commit 70378db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4709,7 +4709,7 @@ rb_raw_obj_info_buitin_type(char *const buff, const size_t buff_size, const VALU
47094709
C(ARY_EMBED_P(obj), "E"),
47104710
C(ARY_SHARED_P(obj), "S"),
47114711
RARRAY_LEN(obj),
4712-
ARY_EMBED_P(obj) ? -1L : RARRAY(obj)->as.heap.aux.capa,
4712+
RARRAY(obj)->as.heap.aux.capa,
47134713
(void *)RARRAY_CONST_PTR(obj));
47144714
}
47154715
break;

0 commit comments

Comments
 (0)