From 55879c7b6d3ebe99ed1938115f53fc4d70f9a9cb Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Tue, 19 Oct 2021 09:03:24 -0500 Subject: [PATCH] Fix checked for fiber being dead. --- src/core/ev.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/ev.c b/src/core/ev.c index 54a7a195..cd1232a3 100644 --- a/src/core/ev.c +++ b/src/core/ev.c @@ -1180,13 +1180,13 @@ JanetFiber *janet_loop1(void) { if (to.curr_fiber != NULL) { /* This is a deadline (for a fiber, not a function call) */ JanetFiberStatus s = janet_fiber_status(to.curr_fiber); - int isFinished = s == (JANET_STATUS_DEAD || - s == JANET_STATUS_ERROR || - s == JANET_STATUS_USER0 || - s == JANET_STATUS_USER1 || - s == JANET_STATUS_USER2 || - s == JANET_STATUS_USER3 || - s == JANET_STATUS_USER4); + int isFinished = (s == JANET_STATUS_DEAD || + s == JANET_STATUS_ERROR || + s == JANET_STATUS_USER0 || + s == JANET_STATUS_USER1 || + s == JANET_STATUS_USER2 || + s == JANET_STATUS_USER3 || + s == JANET_STATUS_USER4); if (!isFinished) { janet_cancel(to.fiber, janet_cstringv("deadline expired")); }