1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/emulators/vba/files/patch-src-prof_prof.cpp
Martin Wilke 7922096790 - Unbreak
- Fix build with gcc 4.2

PR:		116893
Submitted by:	miwi
Approved by:	maintainer timeout
2007-10-17 09:45:35 +00:00

21 lines
672 B
C++

--- 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;