On 14.07.2025 13:24, Dmytro Prokopchuk1 wrote:
> From: Nicola Vetrini <[email protected]>
> 
> MISRA C Rule 10.1 states:
> "Operands shall not be of an inappropriate essential type"
> 
> The unary minus operator applied to an unsigned type(s) has
> a semantics (wrap around) that is well-defined by the toolchains.
> Thus, this operation is deemed safe.
> 
> No functional change.
> 
> Signed-off-by: Nicola Vetrini <[email protected]>
> Signed-off-by: Federico Serafini <[email protected]>
> Signed-off-by: Victor Lira <[email protected]>
> Reviewed-by: Stefano Stabellini <[email protected]>
> Signed-off-by: Dmytro Prokopchuk <[email protected]>

Acked-by: Jan Beulich <[email protected]>


Reply via email to