Skip to content

Commit 4db608d

Browse files
Herbert Vojčíkry
authored andcommitted
Get away uint/int comparision warning.
1 parent ae5d613 commit 4db608d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_net.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static inline Handle<Value> ParseAddressArgs(Handle<Value> first,
221221
// UNIX
222222
String::Utf8Value path(first->ToString());
223223

224-
if (path.length() >= ARRAY_SIZE(un.sun_path)) {
224+
if ((size_t) path.length() >= ARRAY_SIZE(un.sun_path)) {
225225
return Exception::Error(String::New("Socket path too long"));
226226
}
227227

0 commit comments

Comments
 (0)