Fix Huffman with tree sizes >127
Jeffrey Pfau jeffrey@endrift.com
Sun, 13 Oct 2013 03:25:46 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-bios.c
→
src/gba/gba-bios.c
@@ -357,7 +357,7 @@ int padding = (4 - remaining) & 0x3;
remaining &= 0xFFFFFFFC; // We assume the signature byte (0x20) is correct //var tree = []; - int treesize = (memory->d.load8(&memory->d, source + 4, 0) << 1) + 1; + int treesize = (memory->d.loadU8(&memory->d, source + 4, 0) << 1) + 1; int block = 0; uint32_t treeBase = source + 5; uint32_t sPointer = source + 5 + treesize;