Browse Source

node: fix signedness compiler warnings

v0.9.1-release
Ben Noordhuis 13 years ago
parent
commit
8c97ad4c30
  1. 2
      src/node.cc

2
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);

Loading…
Cancel
Save