[kaffe] Re: The problem of "Double.c and buggy strtod" is settled

Ito Kazumitsu kaz at maczuka.gcd.org
Thu Jun 5 08:13:01 PDT 2003

>>>>> ":" == Helmer Krämer <hkraemer at freenet.de> writes:

:> does it work if you comment out the #ifdef HAVE_FLOAT_H ... #endif
:> stuff in replace/strtod.c? It seems to expect a configure check
:> for float.h, but I couldn't find any check ....

I am not <ito.kazumitsu at hitachi-cable.co.jp> using Linux 2.0.x
but <kaz at maczuka.gcd.org> using FreeBSD 4.7-RELEASE.

I tried the same program on FreeBSD and got the same result.
Whether or not the "#ifdef HAVE_FLOAT_H ... #endif" is
commented out does not change the results.

In fact, FreeBSD 4.7-RELEASE's /usr/include/float.h says
#define DBL_MIN         2.2250738585072014E-308
and replace/strtod.c says, when HAVE_FLOAT_H is undefined,
almost the same thing:
# define DBL_MIN 2.2250738585072010e-308
I remember Linux 2.0.x's float.h also defines something like this.

So Java's double MIN_VALUE 4.9406564584124654418e-324 will be
considered to be 0.0 by this strtod.c.

More information about the kaffe mailing list