Here is what I did to suppress the warning:
Replaced in files all occurrences of "ArraySize" with "(int)ArraySize".
That's not a clean nor perfect solution, but did the job!
Forum on trading, automated trading systems and testing trading strategies
many warnings "possible loss of data due to type conversion" at MT5 terminal bulild 969
angevoyageur, 2014.07.28 12:59
It seems ArraySize has been modified to return an 'uint' instead of an 'int'. You can ignore these warnings.
However you can write to ServiceDesk about this issue.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello there,
since build 969 the ArraySize function returns uint datatype instead of int. Now, the return type itself is ok, it's logically correct and it's safe...
The drawback is I get a lot of warnings during compilation, even in Metaquote's code.
What to do?
- rewrite EVERY SINGLE FILE to be compliant with the ArraySize function (going insane)
- do nothing and just stop considering warnings at compile (going unsafe)
- ask to restore the original ArraySize return type?
Considering the official documentation still says "INT", I hope this is a bug..
Thanks