ruby-changes:34251
From: ko1 <ko1@a...>
Date: Tue, 3 Jun 2014 16:37:51 +0900 (JST)
Subject: [ruby-changes:34251] ko1:r46332 (trunk): * gc.c (rb_gc_force_recycle): we only need to know the result (0/1)
ko1 2014-06-03 16:37:44 +0900 (Tue, 03 Jun 2014) New Revision: 46332 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46332 Log: * 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. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 46331) +++ ChangeLog (revision 46332) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +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 46331) +++ gc.c (revision 46332) @@ -4976,7 +4976,7 @@ rb_gc_force_recycle(VALUE p) https://github.com/ruby/ruby/blob/trunk/gc.c#L4976 rb_objspace_t *objspace = &rb_objspace; #if USE_RGENGC - int is_old = RVALUE_OLD_P(p); + int is_old = RVALUE_OLD_P(p) != 0; if (is_old) { objspace->rgengc.old_object_count--; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/