mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
libm/common/s_round.c (round): Add cast for 16-bit CPUs
This commit is contained in:
parent
fca80a9d1b
commit
b7d9d27b0e
@ -68,7 +68,7 @@ SEEALSO
|
|||||||
msw &= 0x80000000;
|
msw &= 0x80000000;
|
||||||
if (exponent_less_1023 == -1)
|
if (exponent_less_1023 == -1)
|
||||||
/* Result is +1.0 or -1.0. */
|
/* Result is +1.0 or -1.0. */
|
||||||
msw |= (1023 << 20);
|
msw |= ((__int32_t)1023 << 20);
|
||||||
lsw = 0;
|
lsw = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user