summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/rational.c b/rational.c
index c1c1081446..d82d487d51 100644
--- a/rational.c
+++ b/rational.c
@@ -1073,11 +1073,7 @@ nurat_expt(VALUE self, VALUE other)
}
if (RB_FLOAT_TYPE_P(num)) { /* infinity due to overflow */
if (RB_FLOAT_TYPE_P(den))
-#ifdef HAVE_NANF
return DBL2NUM(nan(""));
-#else
- return DBL2NUM((double)NAN);
-#endif
return num;
}
if (RB_FLOAT_TYPE_P(den)) { /* infinity due to overflow */