e_exp: Fixed compiler warning on Visual Studio.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 08 Aug 2018 10:26:22 -0400
changeset 1208327e29baad4a3
parent 12082 09999a0e8f9a
child 12084 f0092ea3a038
e_exp: Fixed compiler warning on Visual Studio.
src/libm/e_exp.c
     1.1 --- a/src/libm/e_exp.c	Tue Aug 07 18:07:11 2018 -0400
     1.2 +++ b/src/libm/e_exp.c	Wed Aug 08 10:26:22 2018 -0400
     1.3 @@ -126,7 +126,7 @@
     1.4  	    if(hx < 0x3FF0A2B2) {	/* and |x| < 1.5 ln2 */
     1.5  		hi = x-ln2HI[xsb]; lo=ln2LO[xsb]; k = 1-xsb-xsb;
     1.6  	    } else {
     1.7 -		k  = invln2*x+halF[xsb];
     1.8 +		k  = (int32_t) (invln2*x+halF[xsb]);
     1.9  		t  = k;
    1.10  		hi = x - t*ln2HI[0];	/* t*ln2HI is exact here */
    1.11  		lo = t*ln2LO[0];