UINT64 behavior VC6 C++
-
Hi, the VC6 compiler gives me problems: const UINT64 a = 0x0000000080000000; results in just that, however const UINT64 b = a << 1 results in 0x0000000000000000 !!!! What am I doing wrong ? Is there any way to force b into the required 0x0000000100000000 thanks, Uli2000
-
Hi, the VC6 compiler gives me problems: const UINT64 a = 0x0000000080000000; results in just that, however const UINT64 b = a << 1 results in 0x0000000000000000 !!!! What am I doing wrong ? Is there any way to force b into the required 0x0000000100000000 thanks, Uli2000
this works fine for me (VC6-sp5).
#include "stdafx.h" #include int main(int argc, char* argv[]) { const UINT64 a = 0x0000000080000000; const UINT64 b = a << 1; printf("%I64x\n%I64x\n", a, b); return 0; }
80000000 100000000 -
this works fine for me (VC6-sp5).
#include "stdafx.h" #include int main(int argc, char* argv[]) { const UINT64 a = 0x0000000080000000; const UINT64 b = a << 1; printf("%I64x\n%I64x\n", a, b); return 0; }
80000000 100000000