Skip to content

Commit

Permalink
e_exp: One more compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 8, 2018
1 parent 550437e commit 257071f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libm/e_exp.c
Expand Up @@ -117,7 +117,12 @@ double __ieee754_exp(double x) /* default IEEE double exp */
return x+x; /* NaN */
else return (xsb==0)? x:0.0; /* exp(+-inf)={inf,0} */
}
if(x > o_threshold) return huge*huge; /* overflow */
#if 0
if(x > o_threshold) return huge*huge; /* overflow */
#else /* !!! FIXME: check this: "huge * huge" is a compiler warning, maybe they wanted +Inf? */
if(x > o_threshold) return INFINITY; /* overflow */
#endif

if(x < u_threshold) return twom1000*twom1000; /* underflow */
}

Expand Down

0 comments on commit 257071f

Please sign in to comment.