e_exp: One more compiler warning.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 08 Aug 2018 12:19:01 -0400
changeset 1208561f6f27a9751
parent 12084 f0092ea3a038
child 12086 9beb08c32d94
e_exp: One more compiler warning.
src/libm/e_exp.c
     1.1 --- a/src/libm/e_exp.c	Wed Aug 08 12:13:56 2018 -0400
     1.2 +++ b/src/libm/e_exp.c	Wed Aug 08 12:19:01 2018 -0400
     1.3 @@ -117,7 +117,12 @@
     1.4  		     return x+x; 		/* NaN */
     1.5  		else return (xsb==0)? x:0.0;	/* exp(+-inf)={inf,0} */
     1.6  	    }
     1.7 -	    if(x > o_threshold) return huge*huge; /* overflow */
     1.8 +		#if 0
     1.9 +		if(x > o_threshold) return huge*huge; /* overflow */
    1.10 +		#else  /* !!! FIXME: check this: "huge * huge" is a compiler warning, maybe they wanted +Inf? */
    1.11 +		if(x > o_threshold) return INFINITY; /* overflow */
    1.12 +		#endif
    1.13 +
    1.14  	    if(x < u_threshold) return twom1000*twom1000; /* underflow */
    1.15  	}
    1.16