Browse Source

src: fix signed/unsigned comparison warning

Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: https://github.com/joyent/node/pull/25588
v0.10
Ben Noordhuis 10 years ago
committed by Colin Ihrig
parent
commit
5fc4fb108b
  1. 2
      src/node.cc

2
src/node.cc

@ -1427,7 +1427,7 @@ static Handle<Value> Umask(const Arguments& args) {
node::Utf8Value str(args[0]);
// Parse the octal string.
for (int i = 0; i < str.length(); i++) {
for (size_t i = 0; i < str.length(); i++) {
char c = (*str)[i];
if (c > '7' || c < '0') {
return ThrowException(Exception::TypeError(

Loading…
Cancel
Save