Skip to content

Commit edfee4a

Browse files
authored
Merge pull request #1712 from kevints/SR-8915
2 parents 1f09832 + 949fe84 commit edfee4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Foundation/Data.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
16961696
}
16971697

16981698
public subscript<R: RangeExpression>(_ rangeExpression: R) -> Data
1699-
where R.Bound: FixedWidthInteger, R.Bound.Stride : SignedInteger {
1699+
where R.Bound: FixedWidthInteger {
17001700
@inline(__always)
17011701
get {
17021702
let lower = R.Bound(_sliceRange.lowerBound)

Foundation/NSRange.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ extension NSRange {
251251

252252
extension NSRange {
253253
public init<R: RangeExpression>(_ region: R)
254-
where R.Bound: FixedWidthInteger, R.Bound.Stride : SignedInteger {
254+
where R.Bound: FixedWidthInteger {
255255
let r = region.relative(to: 0..<R.Bound.max)
256256
location = numericCast(r.lowerBound)
257257
length = numericCast(r.count)

0 commit comments

Comments
 (0)