From 375e9d1212402dcbe5458a9d26017071edb4938e Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Wed, 15 Jun 2011 21:37:45 +0200 Subject: [PATCH] Fixed x86_64 issue in Socket timeout code. --- std/socket.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/socket.d b/std/socket.d index 41bb4d190a3..22e06bda145 100644 --- a/std/socket.d +++ b/std/socket.d @@ -873,7 +873,7 @@ class InternetAddress: Address auto buf = new char[NI_MAXHOST]; auto rc = getnameinfoPointer(cast(sockaddr*)&sin, sin.sizeof, - buf.ptr, buf.length, null, 0, 0); + buf.ptr, cast(uint)buf.length, null, 0, 0); enforce(rc == 0, new SocketException( "Could not get host name", _lasterr())); return assumeUnique(buf[0 .. strlen(buf.ptr)]);