Download MetaTrader 5

Warning 'sign mismatch'

To add comments, please log in or register
fx_maddin
118
fx_maddin  

Hi,

I have an EA and installed MetaTrader 4 Client Terminal build 610, it seems everything is fine, EA is working as expected, but there is a warning in the toolbox, which I cannot understand:

sign mismatch

I use a function taken from https://www.mql5.com/en/articles/1412 and the warning is in this line:

if(GetTickCount() - StartWaitingTime > MaxWaiting_sec * 1000) 

I have no idea, how to deal with this warning...

Could anyone help me?

Thanks in advance.

Simon Gniadkowski
Moderator
18003
Simon Gniadkowski  
fx_maddin:

Hi,

I have an EA and installed MetaTrader 4 Client Terminal build 610, it seems everything is fine, EA is working as expected, but there is a warning in the toolbox, which I cannot understand:

I use a function taken from https://www.mql5.com/en/articles/1412 and the warning is in this line:

Your link is broken, please fix it.
whroeder1
14778
whroeder1  
fx_maddin:, which I cannot understand:
sign mismatch

I have no idea, how to deal with this warning...

if(GetTickCount() - StartWaitingTime > MaxWaiting_sec * 1000) 

https://docs.mql4.com/common/GetTickCount returns a uint. You defined StartWaitingTime as an int
To add comments, please log in or register