From 8942e348bd1d8bb73aa35d14fb77377c966aebee Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Mon, 2 Nov 2020 08:27:45 -0600 Subject: [PATCH] Small change to windows ev. --- src/core/ev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ev.c b/src/core/ev.c index aaf24807..0e0aa19b 100644 --- a/src/core/ev.c +++ b/src/core/ev.c @@ -750,10 +750,10 @@ void janet_loop1_impl(int has_timeout, JanetTimestamp to) { uint64_t waittime; if (has_timeout) { JanetTimestamp now = ts_now(); - if (now > to.when) { + if (now > to) { waittime = 0; } else { - waittime = (uint64_t)(to.when - now); + waittime = (uint64_t)(to - now); } } else { waittime = INFINITE;