ruby-changes:16077
From: nobu <ko1@a...>
Date: Wed, 26 May 2010 20:19:50 +0900 (JST)
Subject: [ruby-changes:16077] Ruby:r28028 (trunk, ruby_1_9_2): * random.c (random_rand): add the result of random to the
nobu 2010-05-26 20:19:30 +0900 (Wed, 26 May 2010) New Revision: 28028 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28028 Log: * random.c (random_rand): add the result of random to the beginning of range, not the opposite. [ruby-dev:41415] Modified files: branches/ruby_1_9_2/ChangeLog branches/ruby_1_9_2/random.c trunk/ChangeLog trunk/random.c Index: ChangeLog =================================================================== --- ChangeLog (revision 28027) +++ ChangeLog (revision 28028) @@ -1,3 +1,8 @@ +Wed May 26 20:19:22 2010 Nobuyoshi Nakada <nobu@r...> + + * random.c (random_rand): add the result of random to the + beginning of range, not the opposite. [ruby-dev:41415] + Wed May 26 19:55:33 2010 NAKAMURA Usaku <usa@r...> * file.c (file_expand_path): revert a part of r22392. it's commit miss. @@ -10,8 +15,7 @@ Wed May 26 12:08:06 2010 Nobuyoshi Nakada <nobu@r...> * random.c (random_rand): subtraction method of non-numeric can - return Float, and add the result of random to the beginning of - range, not the opposite. [ruby-dev:41410] + return Float. [ruby-dev:41410] Wed May 26 11:50:09 2010 Eric Hodel <drbrain@s...> Index: random.c =================================================================== --- random.c (revision 28027) +++ random.c (revision 28028) @@ -1085,7 +1085,7 @@ } } default: - return rb_funcall2(v, id_plus, 1, &beg); + return rb_funcall2(beg, id_plus, 1, &v); } } Index: ruby_1_9_2/ChangeLog =================================================================== --- ruby_1_9_2/ChangeLog (revision 28027) +++ ruby_1_9_2/ChangeLog (revision 28028) @@ -1,3 +1,8 @@ +Wed May 26 20:19:22 2010 Nobuyoshi Nakada <nobu@r...> + + * random.c (random_rand): add the result of random to the + beginning of range, not the opposite. [ruby-dev:41415] + Wed May 26 19:55:33 2010 NAKAMURA Usaku <usa@r...> * file.c (file_expand_path): revert a part of r22392. it's commit miss. @@ -5,8 +10,7 @@ Wed May 26 12:08:06 2010 Nobuyoshi Nakada <nobu@r...> * random.c (random_rand): subtraction method of non-numeric can - return Float, and add the result of random to the beginning of - range, not the opposite. [ruby-dev:41410] + return Float. [ruby-dev:41410] Wed May 26 10:35:37 2010 Nobuyoshi Nakada <nobu@r...> Index: ruby_1_9_2/random.c =================================================================== --- ruby_1_9_2/random.c (revision 28027) +++ ruby_1_9_2/random.c (revision 28028) @@ -1085,7 +1085,7 @@ } } default: - return rb_funcall2(v, id_plus, 1, &beg); + return rb_funcall2(beg, id_plus, 1, &v); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/