27-06-2006, 08:23 AM
I am also interested in this rule.
I take from the wording of the rule that a 'U' suffix needs to be applied in this case.
Also
Is this compliant. The U suffix has not been used but isnt this the same?
Code:
#define BIT0 0x0001
I take from the wording of the rule that a 'U' suffix needs to be applied in this case.
Also
Code:
uint32_t x=1U;
uint32_t y;
y=x+(uint32_t)1; /*Cast instead of 'U' */
Is this compliant. The U suffix has not been used but isnt this the same?