mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
1abfdb4585
commit
8745bc676e
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Sep 5 02:17:06 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* bignum.c (rb_big_divrem_normal): Add GC guards.
|
||||||
|
|
||||||
Thu Sep 5 00:38:32 2013 Tanaka Akira <akr@fsij.org>
|
Thu Sep 5 00:38:32 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* bignum.c (rb_big_divrem_normal): New function.
|
* bignum.c (rb_big_divrem_normal): New function.
|
||||||
|
|
3
bignum.c
3
bignum.c
|
@ -2725,6 +2725,9 @@ rb_big_divrem_normal(VALUE x, VALUE y)
|
||||||
bigtrunc(q);
|
bigtrunc(q);
|
||||||
bigtrunc(r);
|
bigtrunc(r);
|
||||||
|
|
||||||
|
RB_GC_GUARD(x);
|
||||||
|
RB_GC_GUARD(y);
|
||||||
|
|
||||||
return rb_assoc_new(q, r);
|
return rb_assoc_new(q, r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue