[前][次][番号順一覧][スレッド一覧]

ruby-changes:31712

From: mrkn <ko1@a...>
Date: Fri, 22 Nov 2013 14:55:51 +0900 (JST)
Subject: [ruby-changes:31712] mrkn:r43791 (trunk): * ext/bigdecimal/bigdecimal.c (BigMath_s_exp): Insert rb_thread_check_ints.

mrkn	2013-11-22 14:55:45 +0900 (Fri, 22 Nov 2013)

  New Revision: 43791

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43791

  Log:
    * ext/bigdecimal/bigdecimal.c (BigMath_s_exp): Insert rb_thread_check_ints.

  Modified files:
    trunk/ChangeLog
    trunk/ext/bigdecimal/bigdecimal.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43790)
+++ ChangeLog	(revision 43791)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Nov 22 14:55:00 2013  Kenta Murata  <mrkn@m...>
+
+	* ext/bigdecimal/bigdecimal.c (BigMath_s_exp): Insert rb_thread_check_ints.
+
 Fri Nov 22 14:35:00 2013  Kenta Murata  <mrkn@m...>
 
 	* ext/bigdecimal/bigdecimal.c (BigMath_s_exp): Fix the inserting points
Index: ext/bigdecimal/bigdecimal.c
===================================================================
--- ext/bigdecimal/bigdecimal.c	(revision 43790)
+++ ext/bigdecimal/bigdecimal.c	(revision 43791)
@@ -2746,6 +2746,9 @@ BigMath_s_exp(VALUE klass, VALUE x, VALU https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L2746
 	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;
 	}

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]