On Sun, Jul 13, 2003 at 01:48:38PM -0600, M. Warner Losh wrote:
> In message: <[EMAIL PROTECTED]>
>             David Leimbach <[EMAIL PROTECTED]> 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.

No, this case is implementation-defined if the value cannot be
represented by the signed type it is converted to.
(If it can be represented then the value will be preserved.)

> 
> See section for 6.3.1.3 for the details.

Yes, please do.

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

-- 
<Insert your favourite quote here.>
Erik Trulsson
[EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to