Debugger bug: const __int64's are truncated to lower 32 bits

  • Thread starter Thread starter Andrew Burlak
  • Start date Start date
A

Andrew Burlak

When I add 'foo' to Watch, it has the value
0x000000009abcdef0
although the program output is correct.

Configuration: Debug, Win32 Console.

-----
#include <stdio.h>

__int64 const foo = 0x123456789ABCDEF0I64;

void main()
{
printf ("foo = 0x%I64x\n", foo);
}
 
When I add 'foo' to Watch, it has the value
0x000000009abcdef0
although the program output is correct.

Configuration: Debug, Win32 Console.

-----
#include <stdio.h>

__int64 const foo = 0x123456789ABCDEF0I64;

void main()
{
printf ("foo = 0x%I64x\n", foo);
}


Andrew,

Thanks for the bug report. I've been able to reproduce the same problem,
and I've reported it to our debugger team.

--
Mark Lacey
Microsoft Visual C++ Team

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 
Back
Top