summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/object.c b/object.c
index 7eed51b..7363482 100644
--- a/object.c
+++ b/object.c
@@ -651,9 +651,7 @@ rb_mod_cmp(mod, arg)
case T_CLASS:
break;
default:
- rb_raise(rb_eTypeError, "<=> requires Class or Module (%s given)",
- rb_class2name(CLASS_OF(arg)));
- break;
+ return Qnil;
}
if (rb_mod_le(mod, arg)) {