From a3aca31b55de6208640bd8e81e1b29d9cbdc0b05 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 19 Sep 2012 22:12:00 +0000 Subject: [PATCH] Fix a stupid sign bug in run_timers() that broke Windows Plink (and should really have broken everything else too). [originally from svn r9674] --- timing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.