summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-06-29 14:22:22 +0200
committerColin Ihrig <cjihrig@nodejs.org>2015-06-29 13:35:22 -0700
commit5fc4fb108b9fdfdb3057a4b6122edbf67489a4a4 (patch)
treeaa3572398bd6362e75393621cadf540dad167918
parent6f8400a11cd5f64472ccf680dcb864ba005e60cd (diff)
downloadnode-5fc4fb108b9fdfdb3057a4b6122edbf67489a4a4.tar.gz
src: fix signed/unsigned comparison warning
Reviewed-By: Colin Ihrig <cjihrig@gmail.com> PR-URL: https://github.com/joyent/node/pull/25588
-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(