all repos — mgba @ 572264df0a8635e84185eb3bafea5bb3b5052af6

mGBA Game Boy Advance Emulator

GBA BIOS: Silence warning
Jeffrey Pfau jeffrey@endrift.com
Sat, 17 Sep 2016 11:05:31 -0700
commit

572264df0a8635e84185eb3bafea5bb3b5052af6

parent

0298f25ea46b0eb0901becf0e9a6b478223fe39d

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/bios.csrc/gba/bios.c

@@ -555,7 +555,7 @@ uint32_t source = cpu->gprs[0] & 0xFFFFFFFC;

uint32_t dest = cpu->gprs[1]; uint32_t header = cpu->memory.load32(cpu, source, 0); int remaining = header >> 8; - int bits = header & 0xF; + unsigned bits = header & 0xF; if (bits == 0) { mLOG(GBA_BIOS, GAME_ERROR, "Invalid Huffman bits"); bits = 8;