bearophile wrote:
Lars T. Kyllingstad:
I think the compiler should be smart enough to figure this out for
itself, but until that happens you can work around it by suffixing at
least one of the integer literals with LU, so the compiler interprets
the entire expression as an ulong:
To make thi
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.
bearophile wrote:
Lars T. Kyllingstad:
I think the compiler should be smart enough to figure this out for
itself, but until that happens you can work around it by suffixing at
least one of the integer literals with LU, so the compiler interprets
the entire expression as an ulong:
To make thi
On Tue, 25 Aug 2009 05:35:31 -0400, JPF wrote:
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()
Lars T. Kyllingstad:
> I think the compiler should be smart enough to figure this out for
> itself, but until that happens you can work around it by suffixing at
> least one of the integer literals with LU, so the compiler interprets
> the entire expression as an ulong:
To make this fix happen
JPF wrote:
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_
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