From d0d672fabe2b451d1adcca0ec1b659cbc2895b5a Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 30 Sep 2002 11:59:37 +0000 Subject: * range.c (range_check): need no Fixnum check. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- range.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'range.c') diff --git a/range.c b/range.c index 932442af3..a004f408e 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; } -- cgit