Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
node: fix signedness compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Mar 30, 2012
1 parent 6986d93 commit 8c97ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Expand Up @@ -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);
Expand Down

0 comments on commit 8c97ad4

Please sign in to comment.