Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is a cast compliant with Rule 12.4
#2
The conversion is defined in terms of mathematical addition or subtraction operations on the value of the expression, but these do not imply that C addition or subtraction operations actually occur, as clarified by footnote 60 (C11) and footnote 51 (C24), whereas this Rule is understood only to apply to operations resulting from the C expression language.

In this example, the ~ operator results in extension, which is not a wraparound.

Therefore this Rule does not apply.
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread
is a cast compliant with Rule 12.4 - by sowisojh - 30-09-2024, 08:25 AM
RE: is a cast compliant with Rule 12.4 - by misra-c - 10-07-2025, 12:15 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)