I stumbled over this when checking a Firmware (MSP430 16bit controller).
The description sounds like there is a serious error, because we really do not want to lose information.
Then i reduced it to the following code and i would say it is a FP. Or at least the description maybe could sound a bit more conservative? What would you say? Is it worth a ticket?
I stumbled over this when checking a Firmware (MSP430 16bit controller).
The description sounds like there is a serious error, because we really do not want to lose information.
Then i reduced it to the following code and i would say it is a FP. Or at least the description maybe could sound a bit more conservative? What would you say? Is it worth a ticket?
since we can clearly see there is not loss of precision, that is a false positive. Please report a ticket.
Thank you Daniel. I created the ticket: https://trac.cppcheck.net/ticket/8274