Avoid overflows on implicit casts

Ralf Corsepius ralf.corsepius@rtems.org
Fri Oct 8 14:37:00 GMT 2010


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 


2010-10-08      Ralf Corsépius <ralf.corsepius@rtems.org>

         * libm/common/sf_llrint.c, libm/common/sf_round.c:
         Add explicit casts to __uint32_t to avoid overflows
         on implicit casts.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib-libm-uint32.diff
URL: <http://sourceware.org/pipermail/newlib/attachments/20101008/e6eec015/attachment.ksh>

More information about the Newlib mailing list