mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove redundant cast
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bb77cc1837
commit
dad3047659
1 changed files with 4 additions and 4 deletions
8
gc.c
8
gc.c
|
|
@ -4982,8 +4982,8 @@ gc_mark_children(rb_objspace_t *objspace, VALUE obj)
|
||||||
case T_CLASS:
|
case T_CLASS:
|
||||||
case T_MODULE:
|
case T_MODULE:
|
||||||
mark_m_tbl(objspace, RCLASS_M_TBL(obj));
|
mark_m_tbl(objspace, RCLASS_M_TBL(obj));
|
||||||
if (RCLASS_SUPER((VALUE)obj)) {
|
if (RCLASS_SUPER(obj)) {
|
||||||
gc_mark(objspace, RCLASS_SUPER((VALUE)obj));
|
gc_mark(objspace, RCLASS_SUPER(obj));
|
||||||
}
|
}
|
||||||
if (!RCLASS_EXT(obj)) break;
|
if (!RCLASS_EXT(obj)) break;
|
||||||
mark_tbl_no_pin(objspace, RCLASS_IV_TBL(obj));
|
mark_tbl_no_pin(objspace, RCLASS_IV_TBL(obj));
|
||||||
|
|
@ -4994,8 +4994,8 @@ gc_mark_children(rb_objspace_t *objspace, VALUE obj)
|
||||||
if (FL_TEST(obj, RICLASS_IS_ORIGIN)) {
|
if (FL_TEST(obj, RICLASS_IS_ORIGIN)) {
|
||||||
mark_m_tbl(objspace, RCLASS_M_TBL(obj));
|
mark_m_tbl(objspace, RCLASS_M_TBL(obj));
|
||||||
}
|
}
|
||||||
if (RCLASS_SUPER((VALUE)obj)) {
|
if (RCLASS_SUPER(obj)) {
|
||||||
gc_mark(objspace, RCLASS_SUPER((VALUE)obj));
|
gc_mark(objspace, RCLASS_SUPER(obj));
|
||||||
}
|
}
|
||||||
if (!RCLASS_EXT(obj)) break;
|
if (!RCLASS_EXT(obj)) break;
|
||||||
mark_m_tbl(objspace, RCLASS_CALLABLE_M_TBL(obj));
|
mark_m_tbl(objspace, RCLASS_CALLABLE_M_TBL(obj));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue