Arguments of `ticksPassed` are unsigned.
ticksPassed should check b <= a instead of a <= b.