aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2002-06-28 15:32:45 +0000
committerThomas Fitzsimmons <fitzsim@redhat.com>2002-06-28 15:32:45 +0000
commit2d5eb17ee38b19b91eaecceb9136885aa4281080 (patch)
tree33bfc9742b5b67fb6bd28dfce359c55e780f2063
parentc1a3171f2dae463528fda965bac53e1adb34c688 (diff)
downloadnewlib-2d5eb17ee38b19b91eaecceb9136885aa4281080.zip
newlib-2d5eb17ee38b19b91eaecceb9136885aa4281080.tar.gz
newlib-2d5eb17ee38b19b91eaecceb9136885aa4281080.tar.bz2
* libm/mathfp/sf_pow.c (powf): Change k from int to float.
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libm/mathfp/sf_pow.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index e057f2e..77de28b 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2002-06-28 Thomas Fitzsimmons <fitzsim@redhat.com>
+
+ * libm/mathfp/sf_pow.c (powf): Change k from int to float.
+
2002-06-27 Benjamin Kosnik <bkoz@redhat.com>
* 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 7f40186..932e75d 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);