int or size_t ?

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat May 7 11:57:59 PDT 2011


void main()
{
    size_t val = int.max+1;
    int val2 = val;
    writeln(val2);
}

writes -2147483648

That should give you a hint.


More information about the Digitalmars-d-learn mailing list