This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Avoid overflows on implicit casts


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]