19-07-2019, 11:49 AM
Is there a implicit conversion in shift expressions?
[code]
int8_t i8;
uint8_t u8;
uint32_t u32;
int32_t i32;
u32 + i8; // i8 -> u32
u32 += i8; // i8 -> u32
u32
Quote:The underlying type of the result is the underlying type of the shift-expression.
[code]
int8_t i8;
uint8_t u8;
uint32_t u32;
int32_t i32;
u32 + i8; // i8 -> u32
u32 += i8; // i8 -> u32
u32
<t></t>