diff options
| author | Tyge Løvset <[email protected]> | 2023-02-27 08:24:18 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-02-27 08:24:18 +0100 |
| commit | 31459ecefc0d54399eafd9a18303868625f57a7c (patch) | |
| tree | 65891c1689dac550255571472a90ac8fafc07c3f | |
| parent | 75b57e30c8dd7a0598ae80b703faceb07908c3ed (diff) | |
| download | STC-modified-31459ecefc0d54399eafd9a18303868625f57a7c.tar.gz STC-modified-31459ecefc0d54399eafd9a18303868625f57a7c.zip | |
Minor issue fixed.
| -rw-r--r-- | include/stc/algo/coroutine.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
