Skip to content

Commit

Permalink
Add missing cast
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Dec 19, 2024
1 parent 0b75f25 commit 029d0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion huffman.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def decompress(self, data: bytes) -> bytes:
# no more bits, decoding error
if bitcount == 0:
print("no more bits")
return dst
return bytes(dst)
if node == eof:
break
dst.append(node.symbol)
Expand Down

0 comments on commit 029d0d4

Please sign in to comment.