projects
/
libc-test
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
279834d
)
strtod: add zero test
author
nsz
<nsz@port70.net>
Wed, 11 Apr 2012 11:52:58 +0000
(13:52 +0200)
committer
nsz
<nsz@port70.net>
Wed, 11 Apr 2012 11:52:58 +0000
(13:52 +0200)
src/stdlib/strtod.c
patch
|
blob
|
history
diff --git
a/src/stdlib/strtod.c
b/src/stdlib/strtod.c
index
08ff74a
..
51e5a92
100644
(file)
--- a/
src/stdlib/strtod.c
+++ b/
src/stdlib/strtod.c
@@
-60,7
+60,9
@@
static struct {
char *s;
double f;
} t[] = {
-// {"-.00000", -0.0},
+ {"0", 0.0},
+ {"00.00", 0.0},
+ {"-.00000", -0.0},
{"1e+1000000", INFINITY},
{"1e-1000000", 0},
// 2^-1074 * 0.5 - eps