Squelch compiler warning about type punning

This commit is contained in:
Jeffrey Pfau 2014-01-31 02:29:27 -08:00
parent d6a4fbd25a
commit 4255d10f08
1 changed files with 2 additions and 1 deletions

View File

@ -561,7 +561,8 @@ void GBAIllegal(struct ARMBoard* board, uint32_t opcode) {
void _checkOverrides(struct GBA* gba, uint32_t id) {
int i;
for (i = 0; _overrides[i].id[0]; ++i) {
if (*(uint32_t*) &_overrides[i].id == id) {
const uint32_t* overrideId = (const uint32_t*) _overrides[i].id;
if (*overrideId == id) {
switch (_overrides[i].type) {
case SAVEDATA_FLASH512:
case SAVEDATA_FLASH1M: