diff options
Diffstat (limited to 'newlib/libc/stdlib/wcstod.c')
-rw-r--r-- | newlib/libc/stdlib/wcstod.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdlib/wcstod.c b/newlib/libc/stdlib/wcstod.c index 9e0d563..810c5b3 100644 --- a/newlib/libc/stdlib/wcstod.c +++ b/newlib/libc/stdlib/wcstod.c @@ -228,7 +228,7 @@ _wcstof_r (struct _reent *ptr, { double retval = _wcstod_l (ptr, nptr, endptr, __get_current_locale ()); if (isnan (retval)) - return nanf (NULL); + return nanf (""); return (float)retval; } @@ -253,7 +253,7 @@ wcstof_l (const wchar_t *__restrict nptr, wchar_t **__restrict endptr, { double val = _wcstod_l (_REENT, nptr, endptr, loc); if (isnan (val)) - return nanf (NULL); + return nanf (""); float retval = (float) val; #ifndef NO_ERRNO if (isinf (retval) && !isinf (val)) @@ -268,7 +268,7 @@ wcstof (const wchar_t *__restrict nptr, { double val = _wcstod_l (_REENT, nptr, endptr, __get_current_locale ()); if (isnan (val)) - return nanf (NULL); + return nanf (""); float retval = (float) val; #ifndef NO_ERRNO if (isinf (retval) && !isinf (val)) |