node: fix signedness compiler warnings

pull/24503/head
Ben Noordhuis 2012-03-30 14:41:43 +02:00
parent 6986d9316c
commit 8c97ad4c30
1 changed files with 1 additions and 1 deletions

View File

@ -1668,7 +1668,7 @@ Handle<Value> 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<size_t>(r) >= sizeof symbol) {
Local<Value> exception =
Exception::Error(String::New("Out of memory."));
return ThrowException(exception);