18-10-2018, 01:29 PM
Rules 10.2-10.8 only apply to expressions whose operands have arithmetic types. This will be clarified in a future release.
Therefore rule 10.8 does not apply to "(uintptr_t)(p+1)".
However p+1 violates rule 18.4 and (uintptr_t)(p+1) violates rule 11.4
Therefore rule 10.8 does not apply to "(uintptr_t)(p+1)".
However p+1 violates rule 18.4 and (uintptr_t)(p+1) violates rule 11.4
Posted by and on behalf of the MISRA C Working Group