diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-19 11:53:07 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-19 11:53:07 +0000 |
commit | 28945ea146a89828f8a568440ab01964928ece8b (patch) | |
tree | d6349ed6c262c12776009168d5df947e4bfd960c /gc.c | |
parent | 9cff4e30c6ee462b7bea30e130b015ffb17b8984 (diff) |
* gc.c (gc_stress_get): GC.stress can be Fixnum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4192,7 +4192,7 @@ gc_stat(int argc, VALUE *argv, VALUE self) /* * call-seq: - * GC.stress -> true or false + * GC.stress -> fixnum, true or false * * Returns current status of GC stress mode. */ @@ -4201,7 +4201,7 @@ static VALUE gc_stress_get(VALUE self) { rb_objspace_t *objspace = &rb_objspace; - return ruby_gc_stress ? Qtrue : Qfalse; + return ruby_gc_stress; } /* |