From 91d2ee737d599139a629d58d52e52cb4105d4772 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 1 Dec 2010 13:05:17 +0000 Subject: * 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 --- ChangeLog | 6 ++++++ numeric.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index fdfc835380..96b02d3b61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Dec 1 22:01:49 2010 NAKAMURA Usaku + + * 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] + Wed Dec 1 21:43:21 2010 Tanaka Akira * array.c: parenthesize macro arguments. diff --git a/numeric.c b/numeric.c index 43d08d011d..a2fab9b31b 100644 --- a/numeric.c +++ b/numeric.c @@ -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"); -- cgit v1.2.3