08-02-2016, 02:54 PM
Quote:A non-negative integer constant expression of essentially signed type may be assigned to an object of essentially unsigned type if its value can be represented in that type.
While Rule 10.3 has this Exception for constructions similar to
Code:
uint8_t u8a = 0; /* By exception */
Code:
int8_t s8a = 1u; /* Compliant? */
Quote:if its value can be represented in that type.?
<t></t>