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]

Avoid overflows on implicit casts


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 <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.


Attachment: newlib-libm-uint32.diff
Description: Text document


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