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 | 8485eeaaaaf26bfc367a0f11572ae33f7830d775 (patch) | |
| tree | f1abc7feb58a2faaaa14621ef75c32f114f1d193 /string.c | |
| parent | 05cf1c7c400f7bae6b53782d67f370d103c11423 (diff) | |
| download | ruby-8485eeaaaaf26bfc367a0f11572ae33f7830d775.tar.gz ruby-8485eeaaaaf26bfc367a0f11572ae33f7830d775.tar.xz ruby-8485eeaaaaf26bfc367a0f11572ae33f7830d775.zip | |
* string.c (rb_str_substr): "a"[1,2] should return ""; need
rubicon upgrade.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -349,7 +349,6 @@ rb_str_substr(str, beg, len) if (len < 0) return Qnil; if (beg > RSTRING(str)->len) return Qnil; - if (beg == RSTRING(str)->len && len > 0) return Qnil; if (beg < 0) { beg += RSTRING(str)->len; if (beg < 0) return Qnil; |
