aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/numeric.c b/numeric.c
index c94eb63b94..756f510ca5 100644
--- a/numeric.c
+++ b/numeric.c
@@ -2311,9 +2311,8 @@ fix_pow(VALUE x, VALUE y)
static VALUE
fix_equal(VALUE x, VALUE y)
{
- if (FIXNUM_P(y)) {
- return (x == y)?Qtrue:Qfalse;
- }
+ if (x == y) return Qtrue;
+ if (FIXNUM_P(y)) return Qfalse;
switch (TYPE(y)) {
case T_BIGNUM:
return rb_big_eq(y, x);