summaryrefslogtreecommitdiff
path: root/coroutine.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-17 02:20:59 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-17 12:15:04 -0600
commita3c2e3bb9092f1d17671c22fd7bf5c0de9b61c3a (patch)
tree357d6d82726f0b2562ec9e4155d2f50f95b8d829 /coroutine.c
parentd58be71b5bf640a117b301d74f4e82110a689561 (diff)
fixes
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);
}