diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gc.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Jun 19 07:47:48 2013 Koichi Sasada <[email protected]> + + * gc.c (garbage_collect_body): use FIX2INT for ruby_gc_stress. + Wed Jun 19 07:44:31 2013 Koichi Sasada <[email protected]> * gc.c (rb_objspace::gc_stress): int -> VALUE to store Fixnum object. @@ -3871,7 +3871,7 @@ garbage_collect_body(rb_objspace_t *objspace, int full_mark, int immediate_sweep immediate_sweep = TRUE; if (FIXNUM_P(ruby_gc_stress)) { - int flag = ruby_gc_stress; + int flag = FIX2INT(ruby_gc_stress); if (flag & 0x01) minor_gc = TRUE; if (flag & 0x02) immediate_sweep = FALSE; |