Versions Compared

Key

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

...

Typically, converting an integer to a smaller type results in truncation of the high-order bits.

See also undefined behavior 15 in C99 Annex J.

Noncompliant Code Example (Unsigned to Signed)

...