From f46f501471dc3505b0c920a61b14ec9551df40c7 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 16 Dec 2016 19:25:30 +0100 Subject: Remove extraneous float casts in wcstod.c. Signed-off-by: Corinna Vinschen --- newlib/libc/stdlib/wcstod.c | 4 ++-- 1 file 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 -- cgit v1.2.3