1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

*** empty log message ***

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 1999-04-09 18:04:08 +00:00
parent 35247a52ef
commit 32e799db48
45 changed files with 3118 additions and 2650 deletions

View file

@ -191,7 +191,11 @@ rb_range_beg_len(range, begp, lenp, len, err)
beg += len;
if (beg < 0) goto out_of_range;
}
if (err == 2 && beg > len) goto out_of_range;
if (err == 2) {
if (beg > len) goto out_of_range;
if (end > len || (!EXCL(range) && end == len))
goto out_of_range;
}
if (end < 0) {
end += len;
if (end < 0) {