Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bugfix: typo

commit 10f19900e5cb521922af06a4e7f3d684e58a7641 1 parent 3bd8881
@cloudwu authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  coroutine.c
View
1  coroutine.c
@@ -81,7 +81,6 @@ coroutine_new(struct schedule *S, coroutine_func func, void *ud) {
struct coroutine *co = _co_new(S, func , ud);
if (S->nco >= S->cap) {
int id = S->cap;
- S->cap *= 2;
S->co = realloc(S->co, S->cap * 2 * sizeof(struct coroutine *));
memset(S->co + S->cap , 0 , sizeof(struct coroutine *) * S->cap);
S->co[S->cap] = co;
Please sign in to comment.
Something went wrong with that request. Please try again.