From 84e58ab64898b910b4456e85b9038db2523ccb26 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 16 Dec 2016 11:32:25 -0500 Subject: Remove extraneous float casts in strtod.c. --- newlib/libc/stdlib/strtod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newlib/libc/stdlib/strtod.c b/newlib/libc/stdlib/strtod.c index f82f50794..82e847c40 100644 --- a/newlib/libc/stdlib/strtod.c +++ b/newlib/libc/stdlib/strtod.c @@ -1301,7 +1301,7 @@ strtof_l (const char *__restrict s00, char **__restrict se, locale_t loc) if (isinf (retval) && !isinf (val)) _REENT->_errno = ERANGE; #endif - return (float)retval; + return retval; } float @@ -1317,7 +1317,7 @@ _DEFUN (strtof, (s00, se), if (isinf (retval) && !isinf (val)) _REENT->_errno = ERANGE; #endif - return (float)retval; + return retval; } #endif -- cgit v1.2.3