From 804bf0bfcf63455f0fa42ff08c09e6455d4d7b70 Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 11 Apr 2009 15:14:18 +0000 Subject: [PATCH] Change cast of cflash_read from unsigned long to u32 since it's what _MMU_ARM9_read32 is supposed to return. --- desmume/src/MMU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/MMU.cpp b/desmume/src/MMU.cpp index d28e34eee..4b74e9bec 100644 --- a/desmume/src/MMU.cpp +++ b/desmume/src/MMU.cpp @@ -3159,7 +3159,7 @@ u32 FASTCALL _MMU_ARM9_read32(u32 adr) #else // CFlash reading, Mic if ((adr>=0x9000000) && (adr<0x9900000)) - return (unsigned long)cflash_read(adr); + return (u32)cflash_read(adr); #endif adr &= 0x0FFFFFFF; @@ -4208,7 +4208,7 @@ u32 FASTCALL _MMU_ARM7_read32(u32 adr) #else // CFlash reading, Mic if ((adr>=0x9000000)&&(adr<0x9900000)) - return (unsigned long)cflash_read(adr); + return (u32)cflash_read(adr); #endif adr &= 0x0FFFFFFF;