This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VALUE | |
rb_ary_sort_bang(VALUE ary) | |
{ | |
rb_ary_modify(ary); | |
assert(!ARY_SHARED_P(ary)); | |
if (RARRAY_LEN(ary) > 1) { | |
VALUE tmp = ary_make_substitution(ary); /* only ary refers tmp */ | |
struct ary_sort_data data; | |
long len = RARRAY_LEN(ary); |
NewerOlder