summaryrefslogtreecommitdiffstats
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-29 05:20:39 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-29 05:20:39 +0000
commit01d834c833686cd36a275d510e1797dda0650859 (patch)
tree568c351a894d8dfe24458b342b4e79d8df5444b2 /range.c
parentbaa320bf271da022032fe09abf01b9e5e776f939 (diff)
downloadruby-01d834c833686cd36a275d510e1797dda0650859.tar.gz
ruby-01d834c833686cd36a275d510e1797dda0650859.tar.xz
ruby-01d834c833686cd36a275d510e1797dda0650859.zip
* parse.y: yyparse #defines moved from intern.h
* ruby.c (proc_options): access prefixed "ruby_yydebug". * applied modifies to pacify some of gcc -Wall warnings. * parse.y (arg): no more ugly hack for "**", so that "-2**2" to be parsed as "(-2)**2", whereas "- 2**2" or "-(2)**2" to be parsed as "-(2**2)". * parse.y (yylex): '-2' to be literal fixnum. [new] * time.c (time_succ): new method for Range support. * time.c (time_arg): nil test against v[6] (usec). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/range.c b/range.c
index 248c11b56..f8596b74d 100644
--- a/range.c
+++ b/range.c
@@ -22,9 +22,9 @@ static VALUE
range_check(args)
VALUE *args;
{
- rb_funcall(args[0], id_cmp, 1, args[1]);
if (!FIXNUM_P(args[0]) && !rb_obj_is_kind_of(args[0], rb_cNumeric)) {
- 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;
}