Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 5fc4fb1

Browse files
bnoordhuisColin Ihrig
authored and
Colin Ihrig
committed
src: fix signed/unsigned comparison warning
Reviewed-By: Colin Ihrig <[email protected]> PR-URL: #25588
1 parent 6f8400a commit 5fc4fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,7 @@ static Handle<Value> Umask(const Arguments& args) {
14271427
node::Utf8Value str(args[0]);
14281428

14291429
// Parse the octal string.
1430-
for (int i = 0; i < str.length(); i++) {
1430+
for (size_t i = 0; i < str.length(); i++) {
14311431
char c = (*str)[i];
14321432
if (c > '7' || c < '0') {
14331433
return ThrowException(Exception::TypeError(

0 commit comments

Comments
 (0)