From dc2b177cbe76779e0d8052c5f3807febef295c87 Mon Sep 17 00:00:00 2001 From: miod Date: Thu, 22 Jan 2015 21:17:43 +0000 Subject: [PATCH] Possibly uninitialized variable. From Clang via dhill. --- lib/libm/src/e_expf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1