ruby-changes:34257
From: ko1 <ko1@a...>
Date: Tue, 3 Jun 2014 18:13:48 +0900 (JST)
Subject: [ruby-changes:34257] ko1:r46338 (trunk): revert r46332 because RVALUE_OLD_P() returns int by r46334
ko1 2014-06-03 18:13:39 +0900 (Tue, 03 Jun 2014) New Revision: 46338 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46338 Log: revert r46332 because RVALUE_OLD_P() returns int by r46334 Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 46337) +++ ChangeLog (revision 46338) @@ -27,12 +27,6 @@ Tue Jun 3 16:38:19 2014 Koichi Sasada https://github.com/ruby/ruby/blob/trunk/ChangeLog#L27 * gc.c (gc_after_sweep): do gc_verify_internal_consistency() when RGENGC_CHECK_MODE >= 2. -Tue Jun 3 16:33:27 2014 Koichi Sasada <ko1@a...> - - * gc.c (rb_gc_force_recycle): we only need to know the result (0/1) - of RVALUE_OLD_P(). clang fails to compile it because is_old is - `int' but RVALUE_OLD_P() returns VALUE. - Tue Jun 3 13:14:04 2014 Shugo Maeda <shugo@r...> * lib/net/imap.rb (body_type_1part): Gmail IMAP reports a body Index: gc.c =================================================================== --- gc.c (revision 46337) +++ gc.c (revision 46338) @@ -5033,7 +5033,7 @@ rb_gc_force_recycle(VALUE p) https://github.com/ruby/ruby/blob/trunk/gc.c#L5033 rb_objspace_t *objspace = &rb_objspace; #if USE_RGENGC - int is_old = RVALUE_OLD_P(p) != 0; + int is_old = RVALUE_OLD_P(p); if (is_old) { objspace->rgengc.old_object_count--; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/