summaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
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);
}