Skip to content

Commit f792724

Browse files
ebainvillemoiseev
authored andcommitted
changes from vode review
(cherry picked from commit 4261de4)
1 parent 97127c8 commit f792724

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Darwin/Compression/Compression.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public class InputFilter<D: DataProtocol> {
254254
// Move to next non-empty region if we are done with the current one
255255
let r = _data.regions
256256
while _regionRemaining == 0 {
257-
_regionIndex = r.index(after: _regionIndex)
257+
r.formIndex(after: &_regionIndex)
258258
if _regionIndex == r.endIndex { break }
259259
_regionRemaining = r[_regionIndex].count
260260
}
@@ -329,7 +329,7 @@ public class InputFilter<D: DataProtocol> {
329329
_eofReached = true
330330
_buf = nil
331331
} else {
332-
_buf = try InputFilterBuffer<D>(data!)
332+
_buf = try InputFilterBuffer(data!)
333333
}
334334
}
335335

0 commit comments

Comments
 (0)