From 31459ecefc0d54399eafd9a18303868625f57a7c Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 27 Feb 2023 08:24:18 +0100 Subject: Minor issue fixed. --- include/stc/algo/coroutine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stc/algo/coroutine.h b/include/stc/algo/coroutine.h index 66b54366..6e36750d 100644 --- a/include/stc/algo/coroutine.h +++ b/include/stc/algo/coroutine.h @@ -85,6 +85,6 @@ int main(void) { #define cco_final case -1 #define cco_alive(c) ((c) && (c)->cco_state > 0) -#define cco_stop(c) ((c)->cco_state = (c)->cco_state ? -1 : -2, c) +#define cco_stop(c) ((c)->cco_state = ((c)->cco_state > 0 ? -1 : -2), c) #endif -- cgit v1.2.3