mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/bigdecimal/bigdecimal.c (BigMath_s_exp): Insert rb_thread_check_ints.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
467c9ec3b7
commit
5ff5938120
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Nov 22 14:55:00 2013 Kenta Murata <mrkn@mrkn.jp>
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c (BigMath_s_exp): Insert rb_thread_check_ints.
|
||||
|
||||
Fri Nov 22 14:35:00 2013 Kenta Murata <mrkn@mrkn.jp>
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c (BigMath_s_exp): Fix the inserting points
|
||||
|
|
|
@ -2746,6 +2746,9 @@ BigMath_s_exp(VALUE klass, VALUE x, VALUE vprec)
|
|||
SIGNED_VALUE const ey = VpExponent10(DATA_PTR(y));
|
||||
SIGNED_VALUE const ed = VpExponent10(DATA_PTR(d));
|
||||
ssize_t m = n - vabs(ey - ed);
|
||||
|
||||
rb_thread_check_ints();
|
||||
|
||||
if (m <= 0) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue