libm/common/s_round.c (round): Add cast for 16-bit CPUs

This commit is contained in:
Jon Beniston 2018-06-20 20:47:24 +01:00 committed by Corinna Vinschen
parent fca80a9d1b
commit b7d9d27b0e
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ SEEALSO
msw &= 0x80000000;
if (exponent_less_1023 == -1)
/* Result is +1.0 or -1.0. */
msw |= (1023 << 20);
msw |= ((__int32_t)1023 << 20);
lsw = 0;
}
else