21-07-2010, 07:37 AM
as per the misra-c writtent in one of its reply that -
Rules 10.1 and 10.3 were designed with signed and unsigned expressions in mind. The treatment of enums, bitfields, chars, relational operators ( < , , >= ), logical operators ( &&, || ) and equality operators ( ==, != ) do not fit this model as yet.
But in Exempler test file mc2_1001.c line number 221
if ( u16r == 1 ) /* Not Compliant */
So if == operator do not fit in the 10.1 model then Why this line is Not Cpmpliant?
Rules 10.1 and 10.3 were designed with signed and unsigned expressions in mind. The treatment of enums, bitfields, chars, relational operators ( < , , >= ), logical operators ( &&, || ) and equality operators ( ==, != ) do not fit this model as yet.
But in Exempler test file mc2_1001.c line number 221
if ( u16r == 1 ) /* Not Compliant */
So if == operator do not fit in the 10.1 model then Why this line is Not Cpmpliant?
<t></t>