File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ internal func _parseAsciiAsUIntMax(
80
80
else { return nil }
81
81
// Disallow < 0.
82
82
if hasMinus && result != 0 { return nil }
83
- // Return.
83
+
84
84
return result
85
85
}
86
86
@@ -97,12 +97,12 @@ internal func _parseAsciiAsIntMax(
97
97
if utf16.isEmpty { return nil }
98
98
// Parse (optional) sign.
99
99
let (digitsUTF16, hasMinus) = _parseOptionalAsciiSign(utf16)
100
- // Parse digits. +1 for because e.g. Int8's range is -128...127.
100
+ // Parse digits. +1 for negatives because e.g. Int8's range is -128...127.
101
101
let absValueMax = UIntMax(bitPattern: maximum) + (hasMinus ? 1 : 0)
102
102
guard let absValue =
103
103
_parseUnsignedAsciiAsUIntMax(digitsUTF16, radix, absValueMax)
104
104
else { return nil }
105
- // Return signed result .
105
+ // Convert to signed .
106
106
return IntMax(bitPattern: hasMinus ? 0 &- absValue : absValue)
107
107
}
108
108
You can’t perform that action at this time.
0 commit comments