Fix Win64 compilation.

This commit is contained in:
Sönke Ludwig 2017-01-23 22:24:27 +01:00
parent 4f94cd107e
commit d3e8005662

View file

@ -433,7 +433,7 @@ final class WinAPIEventDriverDNS : EventDriverDNS {
size_t naddr = 0;
while (results) {
RefAddress addr = addr_storage[naddr];
addr.set(results.ai_addr, results.ai_addrlen);
addr.set(results.ai_addr, cast(socklen_t)results.ai_addrlen);
buf[naddr++] = addr;
results = results.ai_next;
}