3 ms·
Back before the 1989 C Standard, there was a huge debate about whether to do "value preserving" versus "sign preserving" integer promotions. About half the C co
by WalterBright 4y ago
Back before the 1989 C Standard, there was a huge debate about whether to do "value preserving" versus "sign preserving" integer promotions. About half the C compilers did the former, half the latter. Compromise wasn't possible. Value preserving won.
And hence unsigned shorts are promoted to signed ints.