From 5fc4fb108b9fdfdb3057a4b6122edbf67489a4a4 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 29 Jun 2015 14:22:22 +0200 Subject: [PATCH] src: fix signed/unsigned comparison warning Reviewed-By: Colin Ihrig PR-URL: https://github.com/joyent/node/pull/25588 --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index e80c1a573f5..e8ccb7276b8 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1427,7 +1427,7 @@ static Handle 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(