Warning 'sign mismatch'

 

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.

 
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.
 
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
Reason: