提交 551b7ff6 编写于 作者: S Stephen Toub

Fix incorrect assert with kevent


Commit migrated from https://github.com/dotnet/corefx/commit/7b97edd23eeb1ce76f3d19100b4cfc67611a767e
上级 5122ab54
......@@ -2577,7 +2577,7 @@ static Error WaitForSocketEventsInner(int32_t port, SocketEvent* buffer, int32_t
// that case, the wait will block until a file descriptor is added and an event occurs
// on the added file descriptor.
assert(numEvents != 0);
assert(numEvents < *count);
assert(numEvents <= *count);
for (int i = 0; i < numEvents; i++)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册