diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-01 13:05:17 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-01 13:05:17 +0000 |
commit | 91d2ee737d599139a629d58d52e52cb4105d4772 (patch) | |
tree | 6a91ebec787b7be85e48ffd82439ae483c226a05 /numeric.c | |
parent | 8c8814230f949b421206edb9f52ba6e9c822e104 (diff) |
* numeric.c (Init_Numeric): fixed a potential bug when using bccwin32
ruby with Microsoft's dll, though we already gave up of supporting
bccwin32. [ruby-core:33503]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3375,6 +3375,7 @@ Init_Numeric(void) #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"); |