summaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-19 06:27:06 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-19 06:27:06 +0000
commitfcbc516b017cb813873963aa1429d9a88f6dc05e (patch)
tree430b40bc83914fdd8ac33c6c4e47e3c546af279b /object.c
parent7c202937fa47f2b65a060f66e83042e151d97aeb (diff)
downloadruby-fcbc516b017cb813873963aa1429d9a88f6dc05e.tar.gz
ruby-fcbc516b017cb813873963aa1429d9a88f6dc05e.tar.xz
ruby-fcbc516b017cb813873963aa1429d9a88f6dc05e.zip
* object.c (rb_mod_cmp): stupid comparison fixed.
* io.c (Init_IO): ARGF.path added (alias to ARGF.filename). [ruby-dev:20197] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/object.c b/object.c
index 73f01256c..cfd9ce9a0 100644
--- a/object.c
+++ b/object.c
@@ -668,11 +668,10 @@ rb_mod_cmp(mod, arg)
}
cmp = rb_mod_le(mod, arg);
-
+ if (NIL_P(cmp)) return Qnil;
if (cmp) {
return INT2FIX(-1);
}
- if (NIL_P(cmp)) return Qnil;
return INT2FIX(1);
}