diff --git a/src/node_net.cc b/src/node_net.cc index 8d920c952..d4448aa1a 100644 --- a/src/node_net.cc +++ b/src/node_net.cc @@ -221,7 +221,7 @@ static inline Handle ParseAddressArgs(Handle first, // UNIX String::Utf8Value path(first->ToString()); - if (path.length() >= ARRAY_SIZE(un.sun_path)) { + if ((size_t) path.length() >= ARRAY_SIZE(un.sun_path)) { return Exception::Error(String::New("Socket path too long")); }