1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* rational.c: need to include <float.h> just once.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-04-01 12:21:33 +00:00
parent e31a69562e
commit ddf9b405ad
2 changed files with 5 additions and 4 deletions

View file

@ -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.

View file

@ -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)
{