diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-01 13:06:12 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-01 13:06:12 +0000 |
commit | 21be8efab005b5949b4855e8777639acb2d07a85 (patch) | |
tree | 3a2eb0fa9f25284b92be4fad1913e6f3bfac84f9 | |
parent | 52659f509bcabca31feb58d3e43e11983e3092d7 (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-- | ChangeLog | 5 | ||||
-rw-r--r-- | numeric.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -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. @@ -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"); |