We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97127c8 commit f792724Copy full SHA for f792724
stdlib/public/Darwin/Compression/Compression.swift
@@ -254,7 +254,7 @@ public class InputFilter<D: DataProtocol> {
254
// Move to next non-empty region if we are done with the current one
255
let r = _data.regions
256
while _regionRemaining == 0 {
257
- _regionIndex = r.index(after: _regionIndex)
+ r.formIndex(after: &_regionIndex)
258
if _regionIndex == r.endIndex { break }
259
_regionRemaining = r[_regionIndex].count
260
}
@@ -329,7 +329,7 @@ public class InputFilter<D: DataProtocol> {
329
_eofReached = true
330
_buf = nil
331
} else {
332
- _buf = try InputFilterBuffer<D>(data!)
+ _buf = try InputFilterBuffer(data!)
333
334
335
0 commit comments