ruby-changes:31986
From: ktsj <ko1@a...>
Date: Sun, 8 Dec 2013 14:58:23 +0900 (JST)
Subject: [ruby-changes:31986] ktsj:r44065 (trunk): * array.c (rb_ary_shuffle_bang, rb_ary_sample): rename local variables.
ktsj 2013-12-08 14:58:17 +0900 (Sun, 08 Dec 2013) New Revision: 44065 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44065 Log: * array.c (rb_ary_shuffle_bang, rb_ary_sample): rename local variables. Modified files: trunk/ChangeLog trunk/array.c Index: array.c =================================================================== --- array.c (revision 44064) +++ array.c (revision 44065) @@ -4438,10 +4438,10 @@ rb_ary_shuffle_bang(int argc, VALUE *arg https://github.com/ruby/ruby/blob/trunk/array.c#L4438 } if (OPTHASH_GIVEN_P(opts)) { - VALUE random; - rb_get_kwargs(opts, keyword_ids, 0, 1, &random); - if (random != Qundef) { - randgen = random; + VALUE rnd; + rb_get_kwargs(opts, keyword_ids, 0, 1, &rnd); + if (rnd != Qundef) { + randgen = rnd; } } rb_check_arity(argc, 0, 0); @@ -4525,10 +4525,10 @@ rb_ary_sample(int argc, VALUE *argv, VAL https://github.com/ruby/ruby/blob/trunk/array.c#L4525 } if (OPTHASH_GIVEN_P(opts)) { - VALUE random; - rb_get_kwargs(opts, keyword_ids, 0, 1, &random); - if (random != Qundef) { - randgen = random; + VALUE rnd; + rb_get_kwargs(opts, keyword_ids, 0, 1, &rnd); + if (rnd != Qundef) { + randgen = rnd; } } len = RARRAY_LEN(ary); Index: ChangeLog =================================================================== --- ChangeLog (revision 44064) +++ ChangeLog (revision 44065) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Dec 8 14:55:12 2013 Kazuki Tsujimoto <kazuki@c...> + + * array.c (rb_ary_shuffle_bang, rb_ary_sample): rename local variables. + Sun Dec 8 13:59:38 2013 Kazuki Tsujimoto <kazuki@c...> * array.c (rb_ary_shuffle_bang, rb_ary_sample): check -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/