Fix compilation error on Linux.

This commit is contained in:
Sönke Ludwig 2017-01-21 16:40:28 +01:00
parent 12e59b9c3c
commit 0f325a47e4

View file

@ -1245,8 +1245,8 @@ final class PosixEventDriverEvents(Loop : PosixEventLoop) : EventDriverEvents {
assert(id in m_events, "Invalid event ID.");
return &m_events[id].slot;
} else {
assert(event < m_loop.m_fds.length, "Invalid event ID.");
return &m_loop.m_fds[descriptor].event;
assert(id < m_loop.m_fds.length, "Invalid event ID.");
return &m_loop.m_fds[id].event;
}
}