summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/wcstod.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/wcstod.c')
-rw-r--r--newlib/libc/stdlib/wcstod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdlib/wcstod.c b/newlib/libc/stdlib/wcstod.c
index 9b7948e4f..605fca40b 100644
--- a/newlib/libc/stdlib/wcstod.c
+++ b/newlib/libc/stdlib/wcstod.c
@@ -282,7 +282,7 @@ wcstof_l (const wchar_t *__restrict nptr, wchar_t **__restrict endptr,
if (isinf (retval) && !isinf (val))
_REENT->_errno = ERANGE;
#endif
- return (float)retval;
+ return retval;
}
float
@@ -299,7 +299,7 @@ _DEFUN (wcstof, (nptr, endptr),
_REENT->_errno = ERANGE;
#endif
- return (float)retval;
+ return retval;
}
#endif