diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-18 22:49:19 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-18 22:49:19 +0000 |
commit | 97dd259df5f1598e320e2e48de9aedd41834daa2 (patch) | |
tree | 093e4c2a149a74924f170cfaccdce662727d1985 /gc.c | |
parent | bfac961beda98f90463a77c9944f0dc9fa095b10 (diff) | |
download | ruby-97dd259df5f1598e320e2e48de9aedd41834daa2.tar.gz |
* gc.c (garbage_collect_body): use FIX2INT for ruby_gc_stress.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |