diff options
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1567,7 +1567,7 @@ rb_big_eq(VALUE x, VALUE y) volatile double a, b; a = RFLOAT_VALUE(y); - if (isnan(a)) return Qfalse; + if (isnan(a) || isinf(a)) return Qfalse; b = rb_big2dbl(x); return (a == b)?Qtrue:Qfalse; } |