Fixed compiler warning

This commit is contained in:
Sam Lantinga 2020-01-29 20:09:16 -08:00
parent 214eb88f0f
commit 0897f2359c

View file

@ -45,7 +45,7 @@ double scalbln(double x, long n)
}
if (k == 0x7ff)
return x + x; /* NaN or Inf */
k = k + n;
k = (int32_t)(k + n);
if (k > 0x7fe)
return huge * copysign(huge, x); /* overflow */
if (n < -50000)