Skip to content

Commit 58bc25b

Browse files
[stdlib] Add comment
1 parent 8d1261e commit 58bc25b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/IntegerParsing.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ internal func _parseAsciiAsIntMax(
9797
// Parse (optional) sign
9898
let (digitsUTF16, hasMinus) = _parseOptionalAsciiSign(utf16)
9999
// Parse digits
100-
let absValueMax = UIntMax(bitPattern: maximum) + (hasMinus ? 1 : 0)
100+
let absValueMax = UIntMax(bitPattern: maximum) + (hasMinus ? 1 : 0) // E.g. Int8's range is -128...127
101101
guard let absValue = _parseUnsignedAsciiAsUIntMax(digitsUTF16, radix, absValueMax) else { return nil }
102102
// Return signed result
103103
return IntMax(bitPattern: hasMinus ? 0 &- absValue : absValue)

0 commit comments

Comments
 (0)