summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-30 11:59:37 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-30 11:59:37 +0000
commit734506e96dd2e77610c8e2f82b8a0b23d1831b17 (patch)
treee5db83f927aa6ba6b0e6ed4feb82ad1c3deef5f1 /range.c
parent7627d0cea7f93193aa97d8ffe8d94fb2f8c69ebd (diff)
* range.c (range_check): need no Fixnum check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/range.c b/range.c
index 932442a..a004f40 100644
--- a/range.c
+++ b/range.c
@@ -22,10 +22,8 @@ static VALUE
range_check(args)
VALUE *args;
{
- if (!FIXNUM_P(args[0]) && !rb_obj_is_kind_of(args[0], rb_cNumeric)) {
- rb_funcall(args[0], id_cmp, 1, args[1]);
- /* rb_funcall(args[0], id_succ, 0, 0); */
- }
+ rb_funcall(args[0], id_cmp, 1, args[1]);
+ /* rb_funcall(args[0], id_succ, 0, 0); */
return Qnil;
}