summaryrefslogtreecommitdiffstats
path: root/contrib/gdtoa/strtod.c
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2003-03-25 17:55:07 +0000
committerdas <das@FreeBSD.org>2003-03-25 17:55:07 +0000
commitac4cce98d01fbe19f88ac1e217e7895ec38fdbac (patch)
treecd193b11cc426b2df4cb276c23214cfa9b598050 /contrib/gdtoa/strtod.c
parent375d3f8cdbff37bbc427464bd2d61a5b14135acd (diff)
downloadFreeBSD-src-ac4cce98d01fbe19f88ac1e217e7895ec38fdbac.zip
FreeBSD-src-ac4cce98d01fbe19f88ac1e217e7895ec38fdbac.tar.gz
Import new sources. The only material change in this update is to
add locale support for hexadecimal floating point conversions. Noticed by: ache Reviewed by: mike (mentor)
Diffstat (limited to 'contrib/gdtoa/strtod.c')
-rw-r--r--contrib/gdtoa/strtod.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/contrib/gdtoa/strtod.c b/contrib/gdtoa/strtod.c
index 0a559d5..f1a0c04 100644
--- a/contrib/gdtoa/strtod.c
+++ b/contrib/gdtoa/strtod.c
@@ -28,11 +28,7 @@ THIS SOFTWARE.
/* Please send bug reports to
David M. Gay
- Bell Laboratories, Room 2C-463
- 600 Mountain Avenue
- Murray Hill, NJ 07974-0636
- U.S.A.
- dmg@bell-labs.com
+ dmg@acm.org
*/
#include "gdtoaimp.h"
@@ -118,7 +114,7 @@ strtod
switch(s[1]) {
case 'x':
case 'X':
- switch(gethex(&s, &fpi, &exp, &bb, sign)) {
+ switch(i = gethex(&s, &fpi, &exp, &bb, sign)) {
case STRTOG_NoNumber:
s = s00;
sign = 0;
OpenPOWER on IntegriCloud