Index: src/platform-posix.cc |
diff --git a/src/platform-posix.cc b/src/platform-posix.cc |
index 89f4d983df0a0388f47937c1f607d0de2866d40d..613e8e4051f79ca80a7804340a5d023aa7f02653 100644 |
--- a/src/platform-posix.cc |
+++ b/src/platform-posix.cc |
@@ -238,7 +238,7 @@ bool POSIXSocket::Bind(const int port) { |
addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); |
addr.sin_port = htons(port); |
int status = bind(socket_, |
- reinterpret_cast<struct sockaddr *>(&addr), |
+ BitCast<struct sockaddr *>(&addr), |
sizeof(addr)); |
return status == 0; |
} |