From: ben Date: Wed, 19 Sep 2012 22:12:00 +0000 (+0000) Subject: Fix a stupid sign bug in run_timers() that broke Windows Plink (and X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/7d22e9b256ff8fa58b3d2e6ea74102e43f52a0c7 Fix a stupid sign bug in run_timers() that broke Windows Plink (and should really have broken everything else too). git-svn-id: svn://svn.tartarus.org/sgt/putty@9674 cda61777-01e9-0310-a592-d414129be87e --- 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.