summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-08 05:58:17 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-08 05:58:17 +0000
commit7f5a9f3881acd46f5b96419776eb713c42963af7 (patch)
treeb4e5220f91b39f3df811190538b679a2a67dd4aa /array.c
parent3e1360f370a591027b414b582ffdbfe1810f0d12 (diff)
* array.c (rb_ary_shuffle_bang, rb_ary_sample): rename local variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/array.c b/array.c
index 1246909..9a93d7f 100644
--- a/array.c
+++ b/array.c
@@ -4438,10 +4438,10 @@ rb_ary_shuffle_bang(int argc, VALUE *argv, VALUE ary)
}
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, VALUE ary)
}
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);