Make CallTree compile with a C++ compiler. bug 441533, r=shaver

This commit is contained in:
Blake Kaplan 2008-06-24 17:10:32 +02:00
Родитель f834f2dd32
Коммит 8501e1a07a
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -250,7 +250,7 @@ CallTree(void **bp)
csp = &parent->kids;
while ((site = *csp) != NULL) {
if (site->pc == pc) {
if (site->pc == (uint32)pc) {
/* Put the most recently used site at the front of siblings. */
*csp = site->siblings;
site->siblings = parent->kids;
@ -264,7 +264,7 @@ CallTree(void **bp)
/* Check for recursion: see if pc is on our ancestor line. */
for (site = parent; site; site = site->parent) {
if (site->pc == pc)
if (site->pc == (uint32)pc)
goto upward;
}
@ -296,7 +296,7 @@ CallTree(void **bp)
return NULL;
/* Insert the new site into the tree. */
site->pc = pc;
site->pc = (uint32)pc;
site->name = method;
site->library = info.dli_fname;
site->offset = offset;