GBA: Fix type-punning warning

This commit is contained in:
Jeffrey Pfau 2015-12-20 19:57:45 -08:00
parent 6b2eaed35a
commit d5da0ff31b
1 changed files with 2 additions and 2 deletions

View File

@ -734,12 +734,12 @@ bool GBAIsMB(struct VFile* vf) {
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) {