From 0897f2359c57190f717daf6d524c87b9de0b413d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 29 Jan 2020 20:09:16 -0800 Subject: [PATCH] Fixed compiler warning --- src/libm/s_scalbn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libm/s_scalbn.c b/src/libm/s_scalbn.c index dac2febb1..3d8a7183e 100644 --- a/src/libm/s_scalbn.c +++ b/src/libm/s_scalbn.c @@ -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)