Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Typecasting from signed to unsigned and vis-verse
#1
Hi,

Please can anybody help me to understand whether Misra C rules support signed to unsigned and vis-verse data typecasting?

Thanks in advance,
Deepa
<t></t>
#2
It is unclear whether this question has been superceded by the post at http://www.misra.org.uk/forum/viewtopic.php?t=1398 in the MISRA C:2004 part of bulletin board

8.11 is a section on pointer conversions. For example:
Code:
UINT_32 *ptr_u32 = ....
SINT_32 *ptr_s32 = ....

ptr_u32 = (UINT_32 *) ptr_s32; // violates rule 11.3
Posted by and on behalf of the MISRA C Working Group


Forum Jump:


Users browsing this thread: 1 Guest(s)