mirror of https://github.com/nodejs/node.git
node: fix signedness compiler warnings
parent
6986d9316c
commit
8c97ad4c30
|
@ -1668,7 +1668,7 @@ Handle<Value> DLOpen(const v8::Arguments& args) {
|
||||||
|
|
||||||
/* Add the `_module` suffix to the extension name. */
|
/* Add the `_module` suffix to the extension name. */
|
||||||
r = snprintf(symbol, sizeof symbol, "%s_module", base);
|
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 =
|
Local<Value> exception =
|
||||||
Exception::Error(String::New("Out of memory."));
|
Exception::Error(String::New("Out of memory."));
|
||||||
return ThrowException(exception);
|
return ThrowException(exception);
|
||||||
|
|
Loading…
Reference in New Issue