From c3975b1e6e59a4bce0d2f633e84f9aef827e2ea4 Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Mon, 30 May 2005 09:50:43 +0000 Subject: [PATCH] - Replaced the (float) casts in strtof() with calls to powf(). git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14966 87f5fb63-7c3d-0410-a384-fd976d0f7a62 --- library/stdlib_strtof.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/stdlib_strtof.c b/library/stdlib_strtof.c index 6b96010..671bf54 100644 --- a/library/stdlib_strtof.c +++ b/library/stdlib_strtof.c @@ -1,5 +1,5 @@ /* - * $Id: stdlib_strtof.c,v 1.6 2005-05-29 08:19:36 obarthel Exp $ + * $Id: stdlib_strtof.c,v 1.7 2005-05-30 09:50:43 obarthel Exp $ * * :ts=4 * @@ -326,7 +326,7 @@ strtof(const char *str, char ** ptr) float divisor; /* A negative exponent means division. */ - divisor = pow((double)radix,(float)exponent); + divisor = powf(radix,exponent); if(divisor != 0.0) { new_sum = sum / divisor; @@ -343,7 +343,7 @@ strtof(const char *str, char ** ptr) else { /* A positive exponent means multiplication. */ - new_sum = sum * pow((double)radix,(float)exponent); + new_sum = sum * powf(radix,exponent); if(new_sum < sum) error = ERANGE; else