diff options
| -rw-r--r-- | include/stc/algo/coroutine.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/stc/algo/coroutine.h b/include/stc/algo/coroutine.h index 40a98836..f3e42165 100644 --- a/include/stc/algo/coroutine.h +++ b/include/stc/algo/coroutine.h @@ -101,7 +101,6 @@ enum { goto _cco_final_ #define cco_stop(ctx) \ - (((ctx)->cco_state = cco_alive(ctx) ? \ - cco_state_final : cco_state_expired), ctx) + (cco_alive(ctx) ? ((ctx)->cco_state = cco_state_final) : 0, ctx) #endif |
