Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove unnecessary rb_ary_new() in rary_uniq_bang()

  • Loading branch information...
commit 69434c940c75c66020d68da1cea93ce9ceb3a672 1 parent 75c2ecb
@Watson1978 Watson1978 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  array.c
View
2  array.c
@@ -2837,7 +2837,7 @@ rary_uniq_bang(VALUE ary, SEL sel)
rary_resize(ary, RHASH_SIZE(hash));
}
else {
- hash = ary_make_hash(rb_ary_new(), ary);
+ hash = ary_make_hash(ary, 0);
if (RARRAY_LEN(ary) == RHASH_SIZE(hash)) {
return Qnil;
}

0 comments on commit 69434c9

Please sign in to comment.
Something went wrong with that request. Please try again.