Re: Problem with debug IDE displaying value of __int64

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Tarek Madkour [MSFT] (tarekm_at_online.microsoft.com)
Date: 09/23/04


Date: Thu, 23 Sep 2004 13:30:14 -0700


"=?Utf-8?B?SmVzc2UgSG9zZQ==?="
<JesseHose@discussions.microsoft.com> wrote in
news:8D45A783-6FE3-4991-B99B-2DAE462C48B4@microsoft.com:

> I get odd behavior in the debugger with the following code. The
> output of the program itself is correct, but when I add the
> g_bad_int64_max and g_bad_int64_min to the watch window they
> show values of -1 and 0 repsectively. This only happens when
> initializing a const __int64 in global scope with a literal
> constant. I fooled around with the initial value and it looks
> like the upper 32 bits are being ignored. Is this a known
> issue?

It's a bug in VS2003. This is fixed in VS2005.

Thanks,

-- 
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers 
no rights.


Relevant Pages