We are fixing klocwork related issue getting MISRA.CAST.INT (The value of a complex expression of integer type shall only be cast to a type of the same signedness that is no wider than the underlying type of the expression. )
uint32_t* cptr;
uint32_t* dptr;
uint16_t blen;
dptr = PKA_ALIGN(cptr + blen + 1U);//getting error here
#define PKA_ALIGN(addr) (uint32_t *)(((uintptr_t)(addr) + (uint32_t)(8U - 1U)) & ~(uint32_t)(8U - 1U))
WHY is klocwork throwing error?