1diff -urN ../tmp-orig/visualboyadvance-1.7.2/src/sdl/debugger.cpp
2./src/sdl/debugger.cpp
3--- ../tmp-orig/visualboyadvance-1.7.2/src/sdl/debugger.cpp 2004-05-13
416:13:14.000000000 +0200
5+++ ./src/sdl/debugger.cpp 2005-03-21 21:57:06.000000000 +0100
6@@ -950,9 +950,9 @@
7 {
8 u32 address = 0;
9 if(mem >= (u32*)&workRAM[0] && mem <= (u32*)&workRAM[0x3ffff])
10- address = 0x2000000 + ((u32)mem - (u32)&workRAM[0]);
11+ address = 0x2000000 + ((unsigned long)mem - (unsigned long)&workRAM[0]);
12 else
13- address = 0x3000000 + ((u32)mem - (u32)&internalRAM[0]);
14+ address = 0x3000000 + ((unsigned long)mem - (unsigned long)&internalRAM[0]);
15
16 if(size == 2)
17 printf("Breakpoint (on write) address %08x old:%08x new:%08x\n",
18diff -urN ../tmp-orig/visualboyadvance-1.7.2/src/prof/prof.cpp
19./src/prof/prof.cpp
20--- ../tmp-orig/visualboyadvance-1.7.2/src/prof/prof.cpp 2004-05-13
2116:31:58.000000000 +0200
22+++ ./src/prof/prof.cpp 2005-03-21 21:56:27.000000000 +0100
23@@ -266,7 +266,7 @@
24 for (toindex=froms[fromindex]; toindex!=0; toindex=tos[toindex].link) {
25 if(profWrite8(fd, GMON_TAG_CG_ARC) ||
26 profWrite32(fd, (u32)frompc) ||
27- profWrite32(fd, (u32)tos[toindex].selfpc) ||
28+ profWrite32(fd, (unsigned long)tos[toindex].selfpc) ||
29 profWrite32(fd, tos[toindex].count)) {
30 systemMessage(0, "mcount: arc");
31 fclose(fd);