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

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);
}
 
M

Mark Lacey [MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top