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

ruby-changes:17978

From: usa <ko1@a...>
Date: Wed, 1 Dec 2010 22:07:49 +0900 (JST)
Subject: [ruby-changes:17978] Ruby:r29998 (trunk): * numeric.c (Init_Numeric): fixed a potential bug when using bccwin32

usa	2010-12-01 22:05:17 +0900 (Wed, 01 Dec 2010)

  New Revision: 29998

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

  Log:
    * 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]

  Modified files:
    trunk/ChangeLog
    trunk/numeric.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29997)
+++ ChangeLog	(revision 29998)
@@ -1,3 +1,9 @@
+Wed Dec  1 22:01:49 2010  NAKAMURA Usaku  <usa@r...>
+
+	* 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  <akr@f...>
 
 	* array.c: parenthesize macro arguments.
Index: numeric.c
===================================================================
--- numeric.c	(revision 29997)
+++ numeric.c	(revision 29998)
@@ -3375,6 +3375,7 @@
 #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");

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

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