remove unnecessary assignment (#17702)
This commit is contained in:
parent
0bc943ad54
commit
8b5769133c
1 changed files with 0 additions and 1 deletions
|
|
@ -274,7 +274,6 @@ proc start*(c: proc(), stacksize: int = defaultStackSize): CoroutineRef {.discar
|
|||
coro.execContext = CreateFiberEx(stacksize, stacksize,
|
||||
FIBER_FLAG_FLOAT_SWITCH,
|
||||
(proc(p: pointer) {.stdcall.} = runCurrentTask()), nil)
|
||||
coro.stack.size = stacksize
|
||||
else:
|
||||
coro = cast[CoroutinePtr](alloc0(sizeof(Coroutine) + stacksize))
|
||||
coro.stack.top = cast[pointer](cast[ByteAddress](coro) + sizeof(Coroutine))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue