mirror of https://github.com/libsdl-org/SDL
Fixed compiler warning
This commit is contained in:
parent
214eb88f0f
commit
0897f2359c
|
@ -45,7 +45,7 @@ double scalbln(double x, long n)
|
||||||
}
|
}
|
||||||
if (k == 0x7ff)
|
if (k == 0x7ff)
|
||||||
return x + x; /* NaN or Inf */
|
return x + x; /* NaN or Inf */
|
||||||
k = k + n;
|
k = (int32_t)(k + n);
|
||||||
if (k > 0x7fe)
|
if (k > 0x7fe)
|
||||||
return huge * copysign(huge, x); /* overflow */
|
return huge * copysign(huge, x); /* overflow */
|
||||||
if (n < -50000)
|
if (n < -50000)
|
||||||
|
|
Loading…
Reference in New Issue