mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix clipping
This commit is contained in:
parent
79e3d73334
commit
0c8fdd9458
@ -215,7 +215,8 @@ private final class MediaBoxFileMap {
|
||||
} else {
|
||||
maxValue = Int64.max
|
||||
}
|
||||
let clippedRange: Range<Int64> = range.lowerBound ..< min(maxValue, range.upperBound)
|
||||
let clippedUpperBound = min(maxValue, range.upperBound)
|
||||
let clippedRange: Range<Int64> = min(range.lowerBound, clippedUpperBound) ..< clippedUpperBound
|
||||
let clippedRangeSet = RangeSet<Int64>(clippedRange)
|
||||
|
||||
if self.ranges.isSuperset(of: clippedRangeSet) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user