diff options
Diffstat (limited to 'rational.c')
-rw-r--r-- | rational.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/rational.c b/rational.c index eccc73165f..3451fc65e5 100644 --- a/rational.c +++ b/rational.c @@ -7,6 +7,7 @@ #include "ruby.h" #include <math.h> +#include <float.h> #define NDEBUG #include <assert.h> @@ -1110,8 +1111,6 @@ i_ilog2(VALUE x) return q + r; } -#include <float.h> - static VALUE nurat_to_f(VALUE self) { @@ -1298,8 +1297,6 @@ integer_to_r(VALUE self) return rb_rational_new1(self); } -#include <float.h> - static VALUE float_decode(VALUE self) { |