spectral

BUG : No compilation error !!

Discussion created by spectral on Sep 30, 2010
Latest reply on Oct 1, 2010 by spectral

With the following code

float myVal(int istrue)
{
   if (istrue) othermethod();

There is NO return value... it compile correctly !!! and the returned value is 0 !

 

NB : also I do this :

float d = 0.f;
float t = 125.f / d;

-> t is equal to 0 !!!! 

Outcomes