Small change to windows ev.

This commit is contained in:
Calvin Rose 2020-11-02 08:27:45 -06:00
parent 9f27336827
commit 8942e348bd
1 changed files with 2 additions and 2 deletions

View File

@ -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;