diff --git a/src/node.cc b/src/node.cc index 907bd415f69..96945f936a9 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1668,7 +1668,7 @@ Handle DLOpen(const v8::Arguments& args) { /* Add the `_module` suffix to the extension name. */ r = snprintf(symbol, sizeof symbol, "%s_module", base); - if (r <= 0 || r >= sizeof symbol) { + if (r <= 0 || static_cast(r) >= sizeof symbol) { Local exception = Exception::Error(String::New("Out of memory.")); return ThrowException(exception);