summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index ae748fc86a..948e162345 100644
--- a/bignum.c
+++ b/bignum.c
@@ -979,8 +979,8 @@ rb_big_eq(x, y)
volatile double a, b;
a = RFLOAT(y)->value;
+ if (isnan(a)) return Qfalse;
b = rb_big2dbl(x);
- if (isnan(a) || isnan(b)) return Qfalse;
return (a == b)?Qtrue:Qfalse;
}
default: