I am getting the above warning when compiling a line in a file which
assigns an 'intptr_t' result to a 'long' variable. I do not see how
intptr_t can possibly be larger than a long unless intptr_t is a 64 bit
value and I know I am not compiling for 64 bit Windows.
Jochen Kalmbach [MVP] - 02 Aug 2006 14:58 GMT
Hi Edward!
> I am getting the above warning when compiling a line in a file which
> assigns an 'intptr_t' result to a 'long' variable. I do not see how
> intptr_t can possibly be larger than a long unless intptr_t is a 64 bit
> value and I know I am not compiling for 64 bit Windows.
Maybe you have enabled /Wp64 compiler Flag
http://msdn2.microsoft.com/en-us/library/yt4xw8fh.aspx
This is ON by default for new VC2005 projects...
You can disable it in your project settings under "C/C++|General|Detect
64-bit Portability Issues"
Greetings
Jochen
Edward Diener - 02 Aug 2006 17:01 GMT
> Hi Edward!
>> I am getting the above warning when compiling a line in a file which
[quoted text clipped - 6 lines]
>
> This is ON by default for new VC2005 projects...
Woops, you're right. Evidently it is on by default in VS2003 also. Thanks !
Bronek Kozicki - 02 Aug 2006 15:03 GMT
> I am getting the above warning when compiling a line in a file which
> assigns an 'intptr_t' result to a 'long' variable. I do not see how
> intptr_t can possibly be larger than a long unless intptr_t is a 64
> bit value and I know I am not compiling for 64 bit Windows.
do you have /Wp64 compiler option set?
http://msdn.microsoft.com/library/en-us/vccore/html/vchowWp64Detect64BitPortabil
ityProblems.asp
B.