From 077c643e0890ce0d82376531c169c945824f39aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Tue, 27 Jun 2017 00:54:32 +0200 Subject: [PATCH] Fix 64-bit compile error. --- source/eventcore/drivers/winapi/sockets.d | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/eventcore/drivers/winapi/sockets.d b/source/eventcore/drivers/winapi/sockets.d index 81f4663..de00d5f 100644 --- a/source/eventcore/drivers/winapi/sockets.d +++ b/source/eventcore/drivers/winapi/sockets.d @@ -389,7 +389,7 @@ final class WinAPIEventDriverSockets : EventDriverSockets { if (fd == INVALID_SOCKET) return DatagramSocketFD.invalid; - auto sock = adoptDatagramSocket(fd); + auto sock = adoptDatagramSocketInternal(fd); if (target_address !is null) setTargetAddress(sock, target_address); @@ -398,6 +398,11 @@ final class WinAPIEventDriverSockets : EventDriverSockets { } final override DatagramSocketFD adoptDatagramSocket(int socket) + { + return adoptDatagramSocketInternal(socket); + } + + private DatagramSocketFD adoptDatagramSocketInternal(SOCKET socket) { auto fd = DatagramSocketFD(socket); if (m_sockets[fd].common.refCount) // FD already in use?