Another compile fix.

This commit is contained in:
Sönke Ludwig 2017-01-22 03:32:38 +01:00
parent 55ea6c192f
commit 28040004cf

View file

@ -1276,7 +1276,7 @@ final class PosixEventDriverEvents(Loop : PosixEventLoop, Sockets : EventDriverS
return &m_events[cast(DatagramSocketFD)id];
} else {
assert(id < m_loop.m_fds.length, "Invalid event ID.");
return &m_loop.m_fds[id].event();
return () @trusted { return &m_loop.m_fds[id].event(); } ();
}
}