07-06-2006, 12:45 PM
I think that because U16 is a small type and misra2004 in section 6.10.4 about integer constants said that an 10U constant is handle as U32 type, so that it will not compliance with 6.10.6. is that right?
My lint use misra 1998.
Also i want to ask if there is an error in the second line, i mean can i cast from an U32 to U8?
U8a = (U32) u8b / (U32) u8c;
My lint use misra 1998.
Also i want to ask if there is an error in the second line, i mean can i cast from an U32 to U8?
U8a = (U32) u8b / (U32) u8c;
<t>Embedded System</t>