diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-30 11:59:37 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-30 11:59:37 +0000 |
commit | 734506e96dd2e77610c8e2f82b8a0b23d1831b17 (patch) | |
tree | e5db83f927aa6ba6b0e6ed4feb82ad1c3deef5f1 | |
parent | 7627d0cea7f93193aa97d8ffe8d94fb2f8c69ebd (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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | range.c | 6 |
2 files changed, 6 insertions, 4 deletions
@@ -3,6 +3,10 @@ Mon Sep 30 20:29:10 2002 Nobuyoshi Nakada <[email protected]> * 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 <[email protected]> + + * range.c (range_check): need no Fixnum check. + Sun Sep 29 18:30:24 2002 Nobuyoshi Nakada <[email protected]> * win32/win32.c (rb_w32_open_osfhandle): adjust @@ -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; } |