Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
uint8_t port = 0x5aU;
uint8_t result_8 = (static_cast<uint8_t>uint8_t) (~port)) >> 4;

Risk Assessment

Bitwise operations on shorts and chars can produce incorrect data.

...