X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/bcb1823f2c7cb3e886e54c6932ff2c37731d8ab8..7d22e9b256ff8fa58b3d2e6ea74102e43f52a0c7:/timing.c diff --git a/timing.c b/timing.c index 11a03050..ccd76cd6 100644 --- a/timing.c +++ b/timing.c @@ -174,8 +174,8 @@ int run_timers(unsigned long anow, unsigned long *next) */ delpos234(timers, 0); sfree(first); - } else if (now - first->when_set - 10 > - first->now - first->when_set - 10) { + } else if (now - (first->when_set - 10) > + first->now - (first->when_set - 10)) { /* * This timer is active and has reached its running * time. Run it.