diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc index 8c4b9a990b9b47..6291964de6ed0f 100644 --- a/src/tcp_wrap.cc +++ b/src/tcp_wrap.cc @@ -127,8 +127,10 @@ class TCPWrap : public StreamWrap { UNWRAP - int namelen = sizeof(address); - int r = uv_getsockname(&wrap->handle_, &address, &namelen); + int addrlen = sizeof(address); + int r = uv_getsockname(reinterpret_cast(&wrap->handle_), + reinterpret_cast(&address), + &addrlen); Local sockname = Object::New(); if (r != 0) {