From 8745bc676ec06fe0745fc71b5193620e7c7de77a Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 4 Sep 2013 17:21:43 +0000 Subject: [PATCH] * bignum.c (rb_big_divrem_normal): Add GC guards. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ bignum.c | 3 +++ 2 files changed, 7 insertions(+) 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); }