diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | numeric.c | 2 | ||||
| -rw-r--r-- | version.h | 2 |
3 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Aug 3 13:05:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * array.c (rb_ary_{permutation,combination,product}): must not use + ary_discard on strings. + Sat Aug 1 19:23:27 2009 NARUSE, Yui <naruse@ruby-lang.org> * string.c (tr_trans): change condition of singlebyte @@ -897,6 +897,8 @@ flo_hash(VALUE num) 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); } @@ -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 |
