Re: Quick check on signed promotion of bytes



On Jan 31, 10:48 am, vipps...@xxxxxxxxx wrote:

    1) x is promoted to signed int.

That won't happend, therefore the rest of your thoughts is false.
Your code is perfectly valid.

My understanding was as follows:

"If you're dealing with an integer type smaller than int, then it
must undergo promotion before you can perform any operations on it."

--
Tomás Ó hÉilidhe


.