remove unnecessary assignment (#17702)

This commit is contained in:
flywind
2021-04-12 14:58:46 +08:00
committed by GitHub
parent 0bc943ad54
commit 8b5769133c

View File

@@ -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))