Fix compilation error on Linux.
This commit is contained in:
parent
12e59b9c3c
commit
0f325a47e4
|
@ -1245,8 +1245,8 @@ final class PosixEventDriverEvents(Loop : PosixEventLoop) : EventDriverEvents {
|
||||||
assert(id in m_events, "Invalid event ID.");
|
assert(id in m_events, "Invalid event ID.");
|
||||||
return &m_events[id].slot;
|
return &m_events[id].slot;
|
||||||
} else {
|
} else {
|
||||||
assert(event < m_loop.m_fds.length, "Invalid event ID.");
|
assert(id < m_loop.m_fds.length, "Invalid event ID.");
|
||||||
return &m_loop.m_fds[descriptor].event;
|
return &m_loop.m_fds[id].event;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue