By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,389 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,389 IT Pros & Developers. It's quick & easy.

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

P: n/a
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);
}
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
> 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.

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.