summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-31 05:29:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-08-31 05:29:54 +0000
commite0009b6a5437c5427a6abf3ddeee3804f73b9870 (patch)
tree0ed5e86f76f9adff8eb848d6be67500adb86edd2 /range.c
parent5b3ed19660ef4d9ea87265416a199e7dc7e940c1 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/range.c b/range.c
index 5accc14..96f9fd6 100644
--- a/range.c
+++ b/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) {