Re: GCC 3.3.1, new warnings with <limits>

From: M. Warner Losh <imp_at_bsdimp.com>
Date: Sun, 13 Jul 2003 13:48:38 -0600 (MDT)
In message: <340CBBD2-B568-11D7-BE3B-0003937E39E0_at_mac.com>
            David Leimbach <leimy2k_at_mac.com> writes:
: So for the one way conversion of signed to unsigned it will behave like 
: 2's compliment
: all the time. What about back to signed?

Same way.

It will be reduced by the maximum value of the range plus one to do
the conversion.

See section for 6.3.1.3 for the details.

That's why I said 'as if' in my other mail.

Warner
Received on Sun Jul 13 2003 - 10:49:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:15 UTC