Re: Strange calculation problem

2009-08-25 Thread JPF
Thanks for the answers. (I think I don't have to say specifying the literal did work ;-)) Actually I should have known that, but somehow I just didn't think of it.

Strange calculation problem

2009-08-25 Thread JPF
I've hit a strange problem somewhere in my code and I narowed it down to the following testcase: -- module test; import tango.io.Stdout; const ulong SIZE_IN_B = (1024 * 1024 * 1024 * 2); /*should be 2147483648*/ void main() { Stdout.formatln("{0}", SIZE_IN_B); /*but is