File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,10 @@ extension ClosedRange: Equatable {
385
385
extension ClosedRange : Hashable where Bound : Hashable {
386
386
@_inlineable // FIXME(sil-serialize-all)
387
387
public var hashValue : Int {
388
- return _combineHashValues ( lowerBound. hashValue, upperBound. hashValue)
388
+ var result = 0
389
+ result = _combineHashValues ( result, lowerBound. hashValue)
390
+ result = _combineHashValues ( result, upperBound. hashValue)
391
+ return result
389
392
}
390
393
}
391
394
Original file line number Diff line number Diff line change @@ -401,7 +401,10 @@ extension Range: Equatable {
401
401
extension Range : Hashable where Bound : Hashable {
402
402
@_inlineable // FIXME(sil-serialize-all)
403
403
public var hashValue : Int {
404
- return _combineHashValues ( lowerBound. hashValue, upperBound. hashValue)
404
+ var result = 0
405
+ result = _combineHashValues ( result, lowerBound. hashValue)
406
+ result = _combineHashValues ( result, upperBound. hashValue)
407
+ return result
405
408
}
406
409
}
407
410
You can’t perform that action at this time.
0 commit comments