Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed compiler warning
  • Loading branch information
slouken committed Jan 30, 2020
1 parent 214eb88 commit 0897f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libm/s_scalbn.c
Expand Up @@ -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)
Expand Down

0 comments on commit 0897f23

Please sign in to comment.