Updating some of my EAs and went to "strict" properties. Starting getting this warning "possible loss of data due to type conversion".
I know this warning is discussed here and there but here are the specifics:
declared global variable
extern int Leverage = 200;
if statement in MM routine follows:
*** if (Leverage >= AccountInfoInteger(ACCOUNT_LEVERAGE)) Leverage = AccountInfoInteger(ACCOUNT_LEVERAGE);
else if (Leverage < AccountInfoInteger(ACCOUNT_LEVERAGE)) Leverage = Leverage;
***getting the warning here
Does anyone know why? It's declared an integer and asking to read an integer.
Of course it doesn't produce a warning unless code is declared "strict".
I know this warning is discussed here and there but here are the specifics:
declared global variable
extern int Leverage = 200;
if statement in MM routine follows:
*** if (Leverage >= AccountInfoInteger(ACCOUNT_LEVERAGE)) Leverage = AccountInfoInteger(ACCOUNT_LEVERAGE);
else if (Leverage < AccountInfoInteger(ACCOUNT_LEVERAGE)) Leverage = Leverage;
***getting the warning here
Does anyone know why? It's declared an integer and asking to read an integer.
Of course it doesn't produce a warning unless code is declared "strict".