A
Alan Williams-Key
I am being bugged by some bizarre compiler errors when compiling in debug
configuration (but not in release). Here is a test function...
void test()
{
int i = 1;
ASSERT(i==0);
}
When I compile this on my PC I get the following
D:\...\File.cpp(32806) : warning C4305: 'initializing' : truncation from
'int' to 'short'
D:\...\File.cpp(32806) : warning C4309: 'initializing' : truncation of
constant value
Does anyone have any ideas what is causing this. As far as I can see there
is no truncation going on in this function.
Alan
configuration (but not in release). Here is a test function...
void test()
{
int i = 1;
ASSERT(i==0);
}
When I compile this on my PC I get the following
D:\...\File.cpp(32806) : warning C4305: 'initializing' : truncation from
'int' to 'short'
D:\...\File.cpp(32806) : warning C4309: 'initializing' : truncation of
constant value
Does anyone have any ideas what is causing this. As far as I can see there
is no truncation going on in this function.
Alan