long problems

Ellery Newcomer ellery-newcomer at utulsa.edu
Wed Dec 22 21:10:15 PST 2010


On 12/22/2010 11:04 PM, Ellery Newcomer wrote:
> quick question - will the following code do as I expect?
>
> long x;
>
> x = -1;
>
> assert(x == -1);
>
> cuz I've hit a spot where the optimizer isn't loading the high dword into x

nevermind, it's failing with
x = cast(long) -1

and

x = -1L

also


More information about the Digitalmars-d-learn mailing list