mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 18:50:08 +00:00
Make CallTree compile with a C++ compiler. bug 441533, r=shaver
This commit is contained in:
parent
f834f2dd32
commit
8501e1a07a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user