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

ruby-changes:12733

From: yugui <ko1@a...>
Date: Sun, 9 Aug 2009 15:04:08 +0900 (JST)
Subject: [ruby-changes:12733] Ruby:r24458 (ruby_1_9_1): merges r24361 from trunk into ruby_1_9_1.

yugui	2009-08-09 00:31:53 +0900 (Sun, 09 Aug 2009)

  New Revision: 24458

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

  Log:
    merges r24361 from trunk into ruby_1_9_1.
    --
    * numeric.c (flo_hash): normalize -0.0 to 0.0.  [ruby-core:24577]

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

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 24457)
+++ ruby_1_9_1/ChangeLog	(revision 24458)
@@ -1,3 +1,8 @@
+Mon Aug  3 13:05:22 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* array.c (rb_ary_{permutation,combination,product}): must not use
+	  ary_discard on strings.
+
 Sat Aug  1 19:23:27 2009  NARUSE, Yui  <naruse@r...>
 
 	* string.c (tr_trans): change condition of singlebyte
Index: ruby_1_9_1/numeric.c
===================================================================
--- ruby_1_9_1/numeric.c	(revision 24457)
+++ ruby_1_9_1/numeric.c	(revision 24458)
@@ -897,6 +897,8 @@
     int hash;
 
     d = RFLOAT_VALUE(num);
+    /* normalize -0.0 to 0.0 */
+    if (d == 0.0) d = 0.0;
     hash = rb_memhash(&d, sizeof(d));
     return INT2FIX(hash);
 }
Index: ruby_1_9_1/version.h
===================================================================
--- ruby_1_9_1/version.h	(revision 24457)
+++ ruby_1_9_1/version.h	(revision 24458)
@@ -1,5 +1,5 @@
 #define RUBY_VERSION "1.9.1"
-#define RUBY_PATCHLEVEL 262
+#define RUBY_PATCHLEVEL 263
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 9
 #define RUBY_VERSION_TEENY 1

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

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