'int' is enough for 'length' to migrate code from x86 to x64

Don via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 24 23:39:43 PST 2014


On Monday, 24 November 2014 at 16:00:53 UTC, ketmar via 
Digitalmars-d wrote:
> On Mon, 24 Nov 2014 12:54:58 +0000
> Don via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
>
>> In D,  1u - 2u > 0u. This is defined behaviour, not an 
>> overflow.
> this *is* overflow. D just has overflow result defined.

No, that is not overflow. That is a carry. Overflow is when the 
sign bit changes.


More information about the Digitalmars-d mailing list