[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v1] misra: add deviation of Rule 10.1 for unary minus
> From: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx> > > MISRA C Rule 10.1 states: > "Operands shall not be of an inappropriate essential type" > > The unary minus operator applied to an unsigned quantity has > a semantics (wrap around) that is well-known to all Xen developers. > Thus, this operation is deemed safe. > > No functional change. > > Signed-off-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx> > Signed-off-by: Federico Serafini <federico.serafini@xxxxxxxxxxx> > Signed-off-by: Victor Lira <victorm.lira@xxxxxxx> We only have few instances of this pattern and the few we have are well understood and certainly deliberate. In practice, this patch reflects the current coding convention. Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> Jan's request to improve the wording is OK for me.
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |