From 8c97ad4c30e8e3f97c90dbc964478614db1fcd94 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 30 Mar 2012 14:41:43 +0200 Subject: [PATCH] node: fix signedness compiler warnings --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);