diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-01 12:21:33 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-01 12:21:33 +0000 |
| commit | 26c0513b3c128670059eefc05291c4c1d823db75 (patch) | |
| tree | 3976516939f1345481a8e9a451eb8d103c278482 | |
| parent | 246243c54d98f623baa2da79ad6d3473a550f017 (diff) | |
| download | ruby-26c0513b3c128670059eefc05291c4c1d823db75.tar.gz ruby-26c0513b3c128670059eefc05291c4c1d823db75.tar.xz ruby-26c0513b3c128670059eefc05291c4c1d823db75.zip | |
* rational.c: need to include <float.h> just once.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | rational.c | 5 |
2 files changed, 5 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Tue Apr 1 21:19:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * rational.c: need to include <float.h> just once. + Tue Apr 1 16:40:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * bignum.c (big2dbl): more precise conversion at edge cases. diff --git a/rational.c b/rational.c index eccc73165..3451fc65e 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) { |
