diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gc.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Wed Jun 19 20:51:21 2013 Kazuhiro NISHIYAMA <zn@mbf.nifty.com> + + * gc.c (gc_stress_get): GC.stress can be Fixnum. + Wed Jun 19 19:31:30 2013 Tanaka Akira <akr@fsij.org> * bignum.c (DIGSPERLONG): Don't define if BDIGIT is bigger than long. @@ -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; } /* |