mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5b3ed19660
commit
e0009b6a54
10 changed files with 112 additions and 55 deletions
3
range.c
3
range.c
|
@ -42,7 +42,8 @@ range_init(obj, beg, end, exclude_end)
|
|||
|
||||
args[0] = beg; args[1] = end;
|
||||
if (!FIXNUM_P(beg) || !FIXNUM_P(end)) {
|
||||
rb_rescue(range_check, (VALUE)args, range_failed, 0);
|
||||
rb_rescue2(range_check, (VALUE)args, range_failed, 0,
|
||||
rb_eStandardError, rb_eNameError, 0);
|
||||
}
|
||||
|
||||
if (exclude_end) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue