Skip to content

Commit

Permalink
Merge pull request #71 from tayloraswift/apple-swift-73207
Browse files Browse the repository at this point in the history
temporarily workaround swiftlang/swift#73207
  • Loading branch information
tayloraswift authored Jul 7, 2024
2 parents fee79d9 + fadb26d commit 99c1279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/LZ77/HuffmanCoding/LZ77.HuffmanTree.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ extension LZ77.HuffmanTree where Symbol:BinaryInteger
let n:Int = 256 - interior
var z:Int = 256 // n
// finish validating the tree
for (i, leaves):(Int, Range<Int>) in levels[8 ..< 15].enumerated()
for (i, leaves):(offset:Int, element:Range<Int>) in levels[8 ..< 15].enumerated()
{
z += leaves.count << (6 - i)
interior = 2 * interior - leaves.count
Expand Down Expand Up @@ -147,7 +147,7 @@ extension LZ77.HuffmanTree where Symbol:BinaryInteger
let ranges:[Range<Int>] = .init(unsafeUninitializedCapacity: 15)
{
var base:Int = 0
for (i, count):(Int, Int) in counts.dropFirst().enumerated()
for (i, count):(offset:Int, element:Int) in counts.dropFirst().enumerated()
{
$0[i] = base ..< base + count
base += count
Expand Down

0 comments on commit 99c1279

Please sign in to comment.