From 2d5eb17ee38b19b91eaecceb9136885aa4281080 Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Fri, 28 Jun 2002 15:32:45 +0000 Subject: [PATCH] * libm/mathfp/sf_pow.c (powf): Change k from int to float. --- newlib/ChangeLog | 4 ++++ newlib/libm/mathfp/sf_pow.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index e057f2e48..77de28b9c 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2002-06-28 Thomas Fitzsimmons + + * libm/mathfp/sf_pow.c (powf): Change k from int to float. + 2002-06-27 Benjamin Kosnik * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C. diff --git a/newlib/libm/mathfp/sf_pow.c b/newlib/libm/mathfp/sf_pow.c index 7f40186da..932e75dbb 100644 --- a/newlib/libm/mathfp/sf_pow.c +++ b/newlib/libm/mathfp/sf_pow.c @@ -6,8 +6,8 @@ float powf (float x, float y) { - float d, t, r = 1.0; - int n, k, sign = 0, exponent_is_even_int = 0; + float d, k, t, r = 1.0; + int n, sign, exponent_is_even_int = 0; __int32_t px; GET_FLOAT_WORD (px, x);