This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Avoid overflows on implicit casts
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Fri, 8 Oct 2010 17:25:15 +0200
- Subject: Re: Avoid overflows on implicit casts
- References: <4CAF238C.4080603@rtems.org>
- Reply-to: newlib at sourceware dot org
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