I am getting MISRA C-2012 Rule 10.3 violation: Implicit conversion of "var4 + var5" from essential type signed 32-bit int to different or narrower essential type unsigned 8-bit int" for the below code.
int8_t var4 = -10;
uint8_t var5 = 15;
uint8_t var6 = var4 + var5;
How "var4 + var5" is interpreted aa 32 bit int since each one are 8-bit size.
And also what is the correct way of fixing this ?