summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-02 02:47:12 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-02 02:47:12 +0000
commitb79bf14ff26e11765c1605c7da9a3e72902c92d8 (patch)
treeb6687f013db032d1355984977146fd6911922abb /gc.c
parentdf05bd2c82386e5897c4125576199e18a13712a1 (diff)
* gc.c: return true or false. Patch by Dirkjan Bussink. [Bug #6821]
* test/ruby/test_gc.rb: add test-case for this bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index dcf90de6d4..13e572f31d 100644
--- a/gc.c
+++ b/gc.c
@@ -672,7 +672,7 @@ static VALUE
gc_profile_enable_get(VALUE self)
{
rb_objspace_t *objspace = &rb_objspace;
- return objspace->profile.run;
+ return objspace->profile.run ? Qtrue : Qfalse;
}
/*