mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
Get away uint/int comparision warning.
This commit is contained in:
committed by
Ryan Dahl
parent
ae5d613b3e
commit
4db608dbba
@@ -221,7 +221,7 @@ static inline Handle<Value> ParseAddressArgs(Handle<Value> 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"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user