Skip to content

Commit

Permalink
Fix huffman decode
Browse files Browse the repository at this point in the history
  • Loading branch information
mtheall authored and WinterMute committed Jan 26, 2022
1 parent bb9c49b commit 8ad7b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libctru/source/util/decompress/decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ decompress_huff(const size_t bits, buffer_t *buffer, const decompressIOVec *iov,
}

// read the current node's offset value
offset = tree[node] & 0x1F;
offset = tree[node] & 0x3F;

child = (node & ~1) + offset*2 + 2;

Expand Down

0 comments on commit 8ad7b5a

Please sign in to comment.