summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-19 12:14:45 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-19 12:14:45 +0000
commit59995abc1ea07a2278a9f87b66587c65486e01da (patch)
tree72f5fa9f505238e945316552b93f66c63165ed22 /gc.c
parent60e7104fd8978c9ea9feae021151bab9314485b6 (diff)
merge revision(s) 36593: [Backport #7407]
* 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/branches/ruby_1_9_3@38469 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 01d908d1b7..1d37e0ceb4 100644
--- a/gc.c
+++ b/gc.c
@@ -627,7 +627,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;
}
/*