From 8501e1a07ac00625fe9457aeffcfefd83148c250 Mon Sep 17 00:00:00 2001 From: Blake Kaplan Date: Tue, 24 Jun 2008 17:10:32 +0200 Subject: [PATCH] Make CallTree compile with a C++ compiler. bug 441533, r=shaver --- js/src/jsutil.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/jsutil.cpp b/js/src/jsutil.cpp index 1f31fb5dfb09..f0567d0a4f46 100644 --- a/js/src/jsutil.cpp +++ b/js/src/jsutil.cpp @@ -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;