From 9bc60527909825f01f72d31f5d580df8fdb482e4 Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Wed, 4 Sep 2013 11:33:51 +0000 Subject: [PATCH] Build fix for Win64 after r16521. TBR=verwaest@chromium.org Review URL: https://codereview.chromium.org/23850003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16524 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/platform/socket.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform/socket.cc b/src/platform/socket.cc index e82c38c32c..2fce6f2992 100644 --- a/src/platform/socket.cc +++ b/src/platform/socket.cc @@ -128,7 +128,8 @@ bool Socket::Connect(const char* host, const char* port) { for (struct addrinfo* ai = info; ai != NULL; ai = ai->ai_next) { // Try to connect using this addr info. while (true) { - result = ::connect(native_handle_, ai->ai_addr, ai->ai_addrlen); + result = ::connect( + native_handle_, ai->ai_addr, static_cast(ai->ai_addrlen)); if (result == 0) { freeaddrinfo(info); return true;