64 bit variable warnings

Hi all,

I need to use 64 bit variables in my program.

For some reason, I get warnings in Momentix for every line, complaining that the integer is too long for a “long” type.

Hoever, my variable was declared as “long long”

The exact line causing the warning is:

unsigned long long x = (unsigned long long)0x4000000000000000;

On other compilers, mingw and Visual Studio this works without problems.

It is a big problem for me because not just the warnings, the compiler generates code as if I was using “long”.

Any help or ideas would be much appreciated.

Thank You

Add LL after the 0x40000… and no need to cast.