summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-01 13:06:12 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-01 13:06:12 +0000
commit21be8efab005b5949b4855e8777639acb2d07a85 (patch)
tree3a2eb0fa9f25284b92be4fad1913e6f3bfac84f9
parent52659f509bcabca31feb58d3e43e11983e3092d7 (diff)
* numeric.c (Init_Numeric): fixed a potential bug when using bccwin32
ruby with Microsoft's dll. [ruby-core:33503] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--numeric.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 879dfb0286..8c58280240 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Dec 1 22:05:32 2010 NAKAMURA Usaku <[email protected]>
+
+ * numeric.c (Init_Numeric): fixed a potential bug when using bccwin32
+ ruby with Microsoft's dll. [ruby-core:33503]
+
Sat Nov 27 08:42:01 2010 Nobuyoshi Nakada <[email protected]>
* ext/dl/extconf.rb, ext/iconv/charset_alias.rb: use RbConfig.
diff --git a/numeric.c b/numeric.c
index 957cf7b0e6..800d723df0 100644
--- a/numeric.c
+++ b/numeric.c
@@ -3037,6 +3037,7 @@ Init_Numeric()
#elif defined(__BORLANDC__)
/* Turn off floating point exceptions for overflow, etc. */
_control87(MCW_EM, MCW_EM);
+ _control87(_control87(0,0),0x1FFF);
#endif
id_coerce = rb_intern("coerce");
id_to_i = rb_intern("to_i");