diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2016-12-16 11:32:25 -0500 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2016-12-16 11:32:25 -0500 |
commit | 84e58ab64898b910b4456e85b9038db2523ccb26 (patch) | |
tree | ae3ab315f1068227146365ee581cadfede7fc544 /newlib/libc/stdlib/strtod.c | |
parent | dd4a4baab02a49993671f1be51be0486e32b2b3c (diff) | |
download | newlib-84e58ab64898b910b4456e85b9038db2523ccb26.zip newlib-84e58ab64898b910b4456e85b9038db2523ccb26.tar.gz newlib-84e58ab64898b910b4456e85b9038db2523ccb26.tar.bz2 |
Remove extraneous float casts in strtod.c.
Diffstat (limited to 'newlib/libc/stdlib/strtod.c')
-rw-r--r-- | newlib/libc/stdlib/strtod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdlib/strtod.c b/newlib/libc/stdlib/strtod.c index f82f507..82e847c 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 |