Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
6.1, 6.2 and casts?
#1
Does rule 6.1 permit a numeric value to be cast to plain char type and then assigned to an object of plain char?
Does rule 6.2 permit a character value to be cast to signed/unsigned char type and then assigned to an object of signed/unsigned char?
Reply
#2
Yes, both of these are permitted.
Posted by and on behalf of the MISRA C Working Group
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)