[PATCH v2] cpukit/score: Avoid overflow in multiplication
Gedare Bloom
gedare at rtems.org
Mon Jan 22 17:07:59 UTC 2024
On Wed, Jan 17, 2024 at 7:47 AM Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
>
> On 17.01.24 15:31, Kinsey Moore wrote:
> > Change extend_count to uint32_t from uint16_t to avoid a possible
> > premature integer overflow when it is later used for multiplication.
>
> Thanks, looks good.
>
I would have preferred a cast in this case, but I guess it is ok.
More information about the devel
mailing list