diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-05 14:23:38 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-05 14:23:38 +0000 |
| commit | 25407d57a73b9ff175fa799a681a6933f1a19029 (patch) | |
| tree | c9b3c0db5ac335aedcbe40bc3f98f7763def8e6d /array.c | |
| parent | 42864a42ba4633ee2fecefcd9afad9ea24b20dbf (diff) | |
| download | ruby-25407d57a73b9ff175fa799a681a6933f1a19029.tar.gz ruby-25407d57a73b9ff175fa799a681a6933f1a19029.tar.xz ruby-25407d57a73b9ff175fa799a681a6933f1a19029.zip | |
* array.c (sort_2): get rid of yet another bcc's bug.
fixed: [ruby-core:05152]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
| -rw-r--r-- | array.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1584,8 +1584,8 @@ sort_2(ap, bp, data) if ((long)a < (long)b) return -1; return 0; } - if (TYPE(a) == T_STRING && TYPE(b) == T_STRING) { - return rb_str_cmp(a, b); + if (TYPE(a) == T_STRING) { + if (TYPE(b) == T_STRING) return rb_str_cmp(a, b); } retval = rb_funcall(a, id_cmp, 1, b); |
