diff options
author | das <das@FreeBSD.org> | 2008-09-03 07:23:57 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2008-09-03 07:23:57 +0000 |
commit | 2732388653bc1d73e3e22df8de7d745845b3f37f (patch) | |
tree | aa29ae5df5dd7a529e8fb86a22f1dd405bf30837 /contrib/gdtoa/gdtoa.h | |
parent | 88c5e9e192dc799e18634d995e809f49fcd1e4eb (diff) | |
download | FreeBSD-src-2732388653bc1d73e3e22df8de7d745845b3f37f.zip FreeBSD-src-2732388653bc1d73e3e22df8de7d745845b3f37f.tar.gz |
Merge gdtoa 20080831. This fixes several bugs, including an infinite
loop pointed out by cognet@ that occurs when calling strtod() with a
string representing a number between DBL_MAX and 2*DBL_MAX, when the
rounding mode is anything other than the default.
Diffstat (limited to 'contrib/gdtoa/gdtoa.h')
-rw-r--r-- | contrib/gdtoa/gdtoa.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/gdtoa/gdtoa.h b/contrib/gdtoa/gdtoa.h index ee6a9e5..ed0e020 100644 --- a/contrib/gdtoa/gdtoa.h +++ b/contrib/gdtoa/gdtoa.h @@ -74,9 +74,9 @@ typedef unsigned short UShort; /* The following may be or-ed into one of the above values. */ - STRTOG_Neg = 0x08, - STRTOG_Inexlo = 0x10, - STRTOG_Inexhi = 0x20, + STRTOG_Neg = 0x08, /* does not affect STRTOG_Inexlo or STRTOG_Inexhi */ + STRTOG_Inexlo = 0x10, /* returned result rounded toward zero */ + STRTOG_Inexhi = 0x20, /* returned result rounded away from zero */ STRTOG_Inexact = 0x30, STRTOG_Underflow= 0x40, STRTOG_Overflow = 0x80 |