GBA: Fix type-punning warning
Jeffrey Pfau jeffrey@endrift.com
Sun, 20 Dec 2015 19:57:45 -0800
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/gba/gba.c
→
src/gba/gba.c
@@ -734,12 +734,12 @@ }
if (vf->seek(vf, GBA_MB_MAGIC_OFFSET, SEEK_SET) < 0) { return false; } - uint8_t signature[sizeof(uint32_t)]; + uint32_t signature; if (vf->read(vf, &signature, sizeof(signature)) != sizeof(signature)) { return false; } uint32_t opcode; - LOAD_32(opcode, 0, signature); + LOAD_32(opcode, 0, &signature); struct ARMInstructionInfo info; ARMDecodeARM(opcode, &info); if (info.branchType != ARM_BRANCH) {