Hi,
I have a function as follow:
void ClassA::FunctionA()
{
float* a
a = new float[5];
}
The Visual C++ compiler keeps giving the following warning massages:
warning C4305: 'initializing' : truncation from 'int' to 'short'
warning C4309: 'initializing' : truncation of constant value
Could anyone tell me what caused the warnings?
Thanks a lot
I have a function as follow:
void ClassA::FunctionA()
{
float* a
a = new float[5];
}
The Visual C++ compiler keeps giving the following warning massages:
warning C4305: 'initializing' : truncation from 'int' to 'short'
warning C4309: 'initializing' : truncation of constant value
Could anyone tell me what caused the warnings?
Thanks a lot