Sign extension is the widening of a signed integer to more bits by copying its sign bit into all the new high bits, which keeps its value in two’s complement: the byte f0 read as a signed char () becomes fffffff0, still . An unsigned value is widened by zeros instead.
Computer Science · Glossaire