Developer's Topics
Chapter 2, Complying with standard C

Promotions: unsigned vs. value preserving

Promotions: unsigned vs. value preserving

The following information appears in the Rationale that accompanies the draft C Standard:

QUIET CHANGE
A program that depends on unsigned preserving
arithmetic conversions will behave differently,
probably without complaint. This is considered
to be the most serious change made by the Committee
to a widespread current practice.

This section explores how this change affects our code.