summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/node.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.cc b/src/node.cc
index e80c1a573..e8ccb7276 100644
--- a/src/node.cc
+++ b/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(