diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-02-19 09:15:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-02-19 09:15:27 +0000 |
commit | 75be771ccea289aada79f0380d1dd1d6df6e2d00 (patch) | |
tree | 2724b7f6fd59aee613ac74073044753fc7098810 /array.c | |
parent | b3ad0d22902ca5fe62f81a94807e023c6641953c (diff) |
* string.c (rb_str_substr): "a"[1,2] should return ""; need
rubicon upgrade.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -400,7 +400,7 @@ rb_ary_subseq(ary, beg, len) { VALUE ary2; - if (beg >= RARRAY(ary)->len) return Qnil; + if (beg > RARRAY(ary)->len) return Qnil; if (beg < 0 || len < 0) return Qnil; if (beg + len > RARRAY(ary)->len) { |