Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Implicit type convertion
#3
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;
<t>Embedded System</t>


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)