diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-03 07:37:44 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-03 07:37:44 +0000 |
commit | 3d42f2295d63a16823aae864aa53a3a67adb5b6a (patch) | |
tree | b94e510ae859a6e83179c9504ca565125315db14 | |
parent | 87505dd7714b6311c58589752f1f5331ac1d9b1a (diff) | |
download | ruby-3d42f2295d63a16823aae864aa53a3a67adb5b6a.tar.gz |
* 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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gc.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Tue Jun 3 16:33:27 2014 Koichi Sasada <ko1@atdot.net> + + * 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@ruby-lang.org> * lib/net/imap.rb (body_type_1part): Gmail IMAP reports a body @@ -4976,7 +4976,7 @@ rb_gc_force_recycle(VALUE p) 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--; |