mirror of https://github.com/mgba-emu/mgba.git
Squelch compiler warning about type punning
This commit is contained in:
parent
d6a4fbd25a
commit
4255d10f08
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue