1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/emulators/vba/files/patch-src-prof_prof.cpp

21 lines
672 B
C++
Raw Normal View History

--- src/prof/prof.cpp.orig 2007-10-04 01:07:54.000000000 +0200
+++ src/prof/prof.cpp 2007-10-04 01:08:31.000000000 +0200
@@ -279,7 +279,7 @@
void profCount()
{
- register char *selfpc;
+ register u32 selfpc;
register unsigned short *frompcindex;
register struct tostruct *top;
register struct tostruct *prevtop;
@@ -292,7 +292,7 @@
/* selfpc = pc pushed by mcount call.
This identifies the function that was just entered. */
- selfpc = (char *) reg[14].I;
+ selfpc = (u32) reg[14].I;
/* frompcindex = pc in preceding frame.
This identifies the caller of the function just entered. */
frompcindex = (unsigned short *) reg[12].I;