Skip to content

Commit

Permalink
Fixed x86_64 issue in Socket timeout code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadlinger committed Jun 15, 2011
1 parent 955b112 commit 375e9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/socket.d
Expand Up @@ -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)]);
Expand Down

0 comments on commit 375e9d1

Please sign in to comment.