summaryrefslogtreecommitdiff
path: root/coroutine.c
diff options
context:
space:
mode:
Diffstat (limited to 'coroutine.c')
-rw-r--r--coroutine.c2
1 files changed, 1 insertions, 1 deletions
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);
}