Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

node: fix signedness compiler warnings

  • Loading branch information...
bnoordhuis committed Mar 30, 2012
1 parent 6986d93 commit 8c97ad4c30e8e3f97c90dbc964478614db1fcd94
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/node.cc
@@ -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);

0 comments on commit 8c97ad4

Please sign in to comment.
You can’t perform that action at this time.