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

ruby-changes:6296

From: shyouhei <ko1@a...>
Date: Wed, 2 Jul 2008 19:02:47 +0900 (JST)
Subject: [ruby-changes:6296] Ruby:r17811 (ruby_1_8_6): merge revision(s) 17749:17752:

shyouhei	2008-07-02 19:02:35 +0900 (Wed, 02 Jul 2008)

  New Revision: 17811

  Modified files:
    branches/ruby_1_8_6/ChangeLog
    branches/ruby_1_8_6/numeric.c
    branches/ruby_1_8_6/version.h

  Log:
    merge revision(s) 17749:17752:
    * numeric.c (num_coerce): call rb_Float(x) first.  don't depend on
      evaluation order of function arguments.



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

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/ChangeLog?r1=17811&r2=17810&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/version.h?r1=17811&r2=17810&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/numeric.c?r1=17811&r2=17810&diff_format=u

Index: ruby_1_8_6/numeric.c
===================================================================
--- ruby_1_8_6/numeric.c	(revision 17810)
+++ ruby_1_8_6/numeric.c	(revision 17811)
@@ -121,7 +121,9 @@
 {
     if (CLASS_OF(x) == CLASS_OF(y))
 	return rb_assoc_new(y, x);
-    return rb_assoc_new(rb_Float(y), rb_Float(x));
+    x = rb_Float(x);
+    y = rb_Float(y);
+    return rb_assoc_new(y, x);
 }
 
 static VALUE
Index: ruby_1_8_6/ChangeLog
===================================================================
--- ruby_1_8_6/ChangeLog	(revision 17810)
+++ ruby_1_8_6/ChangeLog	(revision 17811)
@@ -1,3 +1,8 @@
+Wed Jul  2 19:01:13 2008  Tanaka Akira  <akr@f...>
+
+	* numeric.c (num_coerce): call rb_Float(x) first.  don't depend on
+	  evaluation order of function arguments.
+
 Wed Jul  2 18:55:50 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* ext/syslog/syslog.c (syslog_write): syslog operations should be
Index: ruby_1_8_6/version.h
===================================================================
--- ruby_1_8_6/version.h	(revision 17810)
+++ ruby_1_8_6/version.h	(revision 17811)
@@ -2,7 +2,7 @@
 #define RUBY_RELEASE_DATE "2008-07-02"
 #define RUBY_VERSION_CODE 186
 #define RUBY_RELEASE_CODE 20080702
-#define RUBY_PATCHLEVEL 262
+#define RUBY_PATCHLEVEL 263
 
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 8

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

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