diff --git a/ChangeLog b/ChangeLog index 4df92b1daa..7996912c7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Jun 19 20:51:21 2013 Kazuhiro NISHIYAMA + + * gc.c (gc_stress_get): GC.stress can be Fixnum. + Wed Jun 19 19:31:30 2013 Tanaka Akira * bignum.c (DIGSPERLONG): Don't define if BDIGIT is bigger than long. diff --git a/gc.c b/gc.c index a49da3219b..f296c1fc4c 100644 --- a/gc.c +++ b/gc.c @@ -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; } /*