Skip to content

Commit 1e2192e

Browse files
committed
Update CommandLine.swift
1 parent 3285f56 commit 1e2192e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/CommandLine.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ extension CommandLine {
5050
// Note: It's still entirely possible that someone may update argv after
5151
// this iteration and before we actually read argv, but we have no control
5252
// over synchronizing access to argc and argv.
53-
var argc = 0
53+
var argc: Int32 = 0
5454

55-
while let _ = _unsafeArgv[argc] {
55+
while let _ = _unsafeArgv[Int(argc)] {
5656
argc += 1
5757
}
5858

0 commit comments

Comments
 (0)