ruby-changes:55445
From: kazu <ko1@a...>
Date: Sun, 21 Apr 2019 11:51:07 +0900 (JST)
Subject: [ruby-changes:55445] kazu:r67657 (trunk): Remove redundant cast
kazu 2019-04-21 11:51:03 +0900 (Sun, 21 Apr 2019) New Revision: 67657 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67657 Log: Remove redundant cast Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 67656) +++ gc.c (revision 67657) @@ -4982,8 +4982,8 @@ gc_mark_children(rb_objspace_t *objspace https://github.com/ruby/ruby/blob/trunk/gc.c#L4982 case T_CLASS: case T_MODULE: mark_m_tbl(objspace, RCLASS_M_TBL(obj)); - if (RCLASS_SUPER((VALUE)obj)) { - gc_mark(objspace, RCLASS_SUPER((VALUE)obj)); + if (RCLASS_SUPER(obj)) { + gc_mark(objspace, RCLASS_SUPER(obj)); } if (!RCLASS_EXT(obj)) break; mark_tbl_no_pin(objspace, RCLASS_IV_TBL(obj)); @@ -4994,8 +4994,8 @@ gc_mark_children(rb_objspace_t *objspace https://github.com/ruby/ruby/blob/trunk/gc.c#L4994 if (FL_TEST(obj, RICLASS_IS_ORIGIN)) { mark_m_tbl(objspace, RCLASS_M_TBL(obj)); } - if (RCLASS_SUPER((VALUE)obj)) { - gc_mark(objspace, RCLASS_SUPER((VALUE)obj)); + if (RCLASS_SUPER(obj)) { + gc_mark(objspace, RCLASS_SUPER(obj)); } if (!RCLASS_EXT(obj)) break; mark_m_tbl(objspace, RCLASS_CALLABLE_M_TBL(obj)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/