projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gcc wrapper improvement: leave libgcc dir in the library path
[musl]
/
src
/
stdlib
/
wcstod.c
diff --git
a/src/stdlib/wcstod.c
b/src/stdlib/wcstod.c
index
338c616
..
5ec45dd
100644
(file)
--- a/
src/stdlib/wcstod.c
+++ b/
src/stdlib/wcstod.c
@@
-39,9
+39,11
@@
static long double wcstox(const wchar_t *s, wchar_t **p, int prec)
while (iswspace(*t)) t++;
f.cookie = (void *)t;
shlim(&f, 0);
while (iswspace(*t)) t++;
f.cookie = (void *)t;
shlim(&f, 0);
- long double y = __floatscan(&f, -1, prec, 1);
- off_t cnt = shcnt(&f);
- if (p) *p = cnt ? t + cnt : (wchar_t *)s;
+ long double y = __floatscan(&f, prec, 1);
+ if (p) {
+ size_t cnt = shcnt(&f);
+ *p = cnt ? t + cnt : (wchar_t *)s;
+ }
return y;
}
return y;
}