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

ruby-changes:13991

From: shyouhei <ko1@a...>
Date: Mon, 16 Nov 2009 19:42:36 +0900 (JST)
Subject: [ruby-changes:13991] Ruby:r25799 (ruby_1_8_7): * ext/bigdecimal/bigdecimal.c (BigDecimal_to_i): revert a part of

shyouhei	2009-11-16 19:42:23 +0900 (Mon, 16 Nov 2009)

  New Revision: 25799

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

  Log:
    * ext/bigdecimal/bigdecimal.c (BigDecimal_to_i): revert a part of
      r23645, which was not a bug fix. [ruby-dev:39474]

  Modified files:
    branches/ruby_1_8_7/ChangeLog
    branches/ruby_1_8_7/ext/bigdecimal/bigdecimal.c
    branches/ruby_1_8_7/version.h

Index: ruby_1_8_7/ext/bigdecimal/bigdecimal.c
===================================================================
--- ruby_1_8_7/ext/bigdecimal/bigdecimal.c	(revision 25798)
+++ ruby_1_8_7/ext/bigdecimal/bigdecimal.c	(revision 25799)
@@ -530,14 +530,14 @@
 
     /* Infinity or NaN not converted. */
     if(VpIsNaN(p)) {
-       VpException(VP_EXCEPTION_NaN,"Computation results to 'NaN'(Not a Number)",1);
-       return Qnil;		/* not reached */
+       VpException(VP_EXCEPTION_NaN,"Computation results to 'NaN'(Not a Number)",0);
+       return Qnil;
     } else if(VpIsPosInf(p)) {
-       VpException(VP_EXCEPTION_INFINITY,"Computation results to 'Infinity'",1);
-       return Qnil;		/* not reached */
+       VpException(VP_EXCEPTION_INFINITY,"Computation results to 'Infinity'",0);
+       return Qnil;
     } else if(VpIsNegInf(p)) {
-       VpException(VP_EXCEPTION_INFINITY,"Computation results to '-Infinity'",1);
-       return Qnil;		/* not reached */
+       VpException(VP_EXCEPTION_INFINITY,"Computation results to '-Infinity'",0);
+       return Qnil;
     }
 
     e = VpExponent10(p);
Index: ruby_1_8_7/ChangeLog
===================================================================
--- ruby_1_8_7/ChangeLog	(revision 25798)
+++ ruby_1_8_7/ChangeLog	(revision 25799)
@@ -1,3 +1,8 @@
+Mon Nov 16 19:28:23 2009  URABE Shyouhei  <shyouhei@r...>
+
+	* ext/bigdecimal/bigdecimal.c (BigDecimal_to_i): revert a part of
+	  r23645, which was not a bug fix. [ruby-dev:39474]
+
 Fri Sep 11 11:56:53 2009  Akinori MUSHA  <knu@i...>
 
 	* class.c (rb_singleton_class_clone): Qnil must be used for a null
Index: ruby_1_8_7/version.h
===================================================================
--- ruby_1_8_7/version.h	(revision 25798)
+++ ruby_1_8_7/version.h	(revision 25799)
@@ -1,15 +1,15 @@
 #define RUBY_VERSION "1.8.7"
-#define RUBY_RELEASE_DATE "2009-11-09"
+#define RUBY_RELEASE_DATE "2009-11-16"
 #define RUBY_VERSION_CODE 187
-#define RUBY_RELEASE_CODE 20091109
-#define RUBY_PATCHLEVEL 202
+#define RUBY_RELEASE_CODE 20091116
+#define RUBY_PATCHLEVEL 203
 
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 8
 #define RUBY_VERSION_TEENY 7
 #define RUBY_RELEASE_YEAR 2009
 #define RUBY_RELEASE_MONTH 11
-#define RUBY_RELEASE_DAY 9
+#define RUBY_RELEASE_DAY 16
 
 #ifdef RUBY_EXTERN
 RUBY_EXTERN const char ruby_version[];

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

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