We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3285f56 commit 1e2192eCopy full SHA for 1e2192e
stdlib/public/core/CommandLine.swift
@@ -50,9 +50,9 @@ extension CommandLine {
50
// Note: It's still entirely possible that someone may update argv after
51
// this iteration and before we actually read argv, but we have no control
52
// over synchronizing access to argc and argv.
53
- var argc = 0
+ var argc: Int32 = 0
54
55
- while let _ = _unsafeArgv[argc] {
+ while let _ = _unsafeArgv[Int(argc)] {
56
argc += 1
57
}
58
0 commit comments