11-12-2007, 09:59 AM
Although the rule justification only refers to alignment problems, the intention of the rule is that ALL pointer casts should be avoided.
Other issues to consider when casting between pointer types include:
endian representation,
signedness,
size.
Other issues to consider when casting between pointer types include:
endian representation,
signedness,
size.
Posted by and on behalf of the MISRA C Working Group