diff --git a/ChangeLog b/ChangeLog index ec7d7e1f95..e221698ab9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,10 @@ Mon Sep 30 20:29:10 2002 Nobuyoshi Nakada * io.c (rb_io_inspect): not need to raise IOError for closed stream. [ruby-talk:51871] +Mon Sep 30 03:48:15 2002 Yukihiro Matsumoto + + * range.c (range_check): need no Fixnum check. + Sun Sep 29 18:30:24 2002 Nobuyoshi Nakada * win32/win32.c (rb_w32_open_osfhandle): adjust diff --git a/range.c b/range.c index 932442af39..a004f408ec 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; }