Avoid overflows on implicit casts
Corinna Vinschen
vinschen@redhat.com
Fri Oct 8 15:37:00 GMT 2010
On Oct 8 15:58, Ralf Corsepius wrote:
> Hi,
>
> some consts in libm/common cause overflows on implicit type casts on
> non-32bit targets.
>
> The patch below adds explict casts to __uint32_t (temporaries) to
> avoid them.
>
> Ralf
>
> 2010-10-08 Ralf Corsépius
>
> * libm/common/sf_llrint.c, libm/common/sf_round.c:
> Add explicit casts to __uint32_t to avoid overflows
> on implicit casts.
Applied. Thank you.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat
More information about the Newlib
mailing list