summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-03 07:37:44 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-03 07:37:44 +0000
commit3d42f2295d63a16823aae864aa53a3a67adb5b6a (patch)
treeb94e510ae859a6e83179c9504ca565125315db14
parent87505dd7714b6311c58589752f1f5331ac1d9b1a (diff)
* 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--ChangeLog6
-rw-r--r--gc.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d9a5666e185..8176b87e203 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/gc.c b/gc.c
index 30938e1563c..8bfb84ef846 100644
--- a/gc.c
+++ b/gc.c
@@ -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--;