Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 2003 13:48:38 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        leimy2k@mac.com
Cc:        freebsd-current@freebsd.org
Subject:   Re: GCC 3.3.1, new warnings with <limits>
Message-ID:  <20030713.134838.39218842.imp@bsdimp.com>
In-Reply-To: <340CBBD2-B568-11D7-BE3B-0003937E39E0@mac.com>
References:  <1046B4F9-B561-11D7-BE3B-0003937E39E0@mac.com> <20030713190720.GA17305@falcon.midgard.homeip.net> <340CBBD2-B568-11D7-BE3B-0003937E39E0@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <340CBBD2-B568-11D7-BE3B-0003937E39E0@mac.com>
            David Leimbach <leimy2k@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030713.134838.39218842.imp>