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 /gc.c | |
parent | 87505dd7714b6311c58589752f1f5331ac1d9b1a (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
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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--; |