void main() { auto x = 9223372036854775808; // long.max + 1 }
You need to tell, that this is an unsigned long literal, else the compiler treats it as an int:
void main() { auto x = 9223372036854775808UL; // long.max + 1 }
berni44 via Digitalmars-d-learn Fri, 13 Dec 2019 23:45:48 -0800
void main() { auto x = 9223372036854775808; // long.max + 1 }
You need to tell, that this is an unsigned long literal, else the compiler treats it as an int:
void main() { auto x = 9223372036854775808UL; // long.max + 1 }