diff --git a/ChangeLog b/ChangeLog index ecd1137cff..41db5cfffc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Sep 5 02:17:06 2013 Tanaka Akira + + * bignum.c (rb_big_divrem_normal): Add GC guards. + Thu Sep 5 00:38:32 2013 Tanaka Akira * bignum.c (rb_big_divrem_normal): New function. diff --git a/bignum.c b/bignum.c index 6092376061..b09080d4ee 100644 --- a/bignum.c +++ b/bignum.c @@ -2725,6 +2725,9 @@ rb_big_divrem_normal(VALUE x, VALUE y) bigtrunc(q); bigtrunc(r); + RB_GC_GUARD(x); + RB_GC_GUARD(y); + return rb_assoc_new(q, r); }