summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-01-22 21:17:44 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-01-22 21:17:44 +0000
commitb677c2fe7a29ea6d0a3a5c30b8bfbce4df5f0539 (patch)
treee3bf38111d25929778df720865eaf37b2d68b97e /lib
parent577d1da389e3693e87b35d884827c02b5e4795a8 (diff)
Possibly uninitialized variable. From Clang via dhill.
Diffstat (limited to 'lib')
-rw-r--r--lib/libm/src/e_expf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libm/src/e_expf.c b/lib/libm/src/e_expf.c
index 0e0bc542ee4..67e8fc49f1d 100644
--- a/lib/libm/src/e_expf.c
+++ b/lib/libm/src/e_expf.c
@@ -45,6 +45,7 @@ expf(float x) /* default IEEE double exp */
GET_FLOAT_WORD(hx,x);
xsb = (hx>>31)&1; /* sign bit of x */
hx &= 0x7fffffff; /* high word of |x| */
+ k = 0;
/* filter out non-finite argument */
if(hx >= 0x42b17218) { /* if |x|>=88.721... */
@@ -71,7 +72,6 @@ expf(float x) /* default IEEE double exp */
else if(hx < 0x31800000) { /* when |x|<2**-28 */
if(huge+x>one) return one+x;/* trigger inexact */
}
- else k = 0;
/* x is now in primary range */
t = x*x;