1 diff a/VBA/GBA.cpp b/VBA/GBA.cpp
4 @@ -1049,17 +1049,17 @@ int CPULoadRom(const char *szFile)
12 rom = (u8 *)malloc(0x200);
14 - i = (int)utilLoad(szFile,utilIsGBAImage,whereToLoad,size);
15 + i = (long)utilLoad(szFile,utilIsGBAImage,whereToLoad,size);
19 rom = utilLoad(szFile,utilIsGBAImage,whereToLoad,size);
24 //loadedsize = sizeof(*rom);
25 diff a/VBA/Util.cpp b/VBA/Util.cpp
28 @@ -917,7 +917,7 @@ bool utilIsGSF(const char * file)
31 if(strlen(file) > 4) {
32 - char *p = strrchr(file,'.');
33 + const char *p = strrchr(file,'.');
36 if(_stricmp(p, ".gsf") == 0)
37 @@ -934,7 +934,7 @@ bool utilIsGBAImage(const char * file)
39 cpuIsMultiBoot = false;
40 if(strlen(file) > 4) {
41 - char * p = strrchr(file,'.');
42 + const char * p = strrchr(file,'.');
45 //if(_stricmp(p, ".gba") == 0)