From a3c2e3bb9092f1d17671c22fd7bf5c0de9b61c3a Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 17 Sep 2024 02:20:59 -0600 Subject: fixes --- coroutine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coroutine.c') diff --git a/coroutine.c b/coroutine.c index 3228663..491dc67 100644 --- a/coroutine.c +++ b/coroutine.c @@ -30,7 +30,7 @@ cid_t coroutine_add(cr_fn_t fn, void *stack) { for (cid_t i = 1; cid == 0 && i < coroutine_table_len; i++) if (_coroutine_table[i].fn == NULL) cid = i; - if (cid = 0) { + if (cid == 0) { cid = coroutine_table_len++; _coroutine_table = realloc(_coroutine_table, (sizeof _coroutine_table[0]) * coroutine_table_len); } -- cgit v1.2.3-2-g168b