summaryrefslogtreecommitdiff
path: root/libs/utils/CallStack.cpp
diff options
context:
space:
mode:
author Jean-Baptiste Queru <jbq@google.com> 2009-11-12 18:45:53 -0800
committer Jean-Baptiste Queru <jbq@google.com> 2009-11-13 13:53:39 -0800
commitcc8c35cee5de7fdf2d79a1a3716120b64301cdfe (patch)
treea9acd18ab5526d297928f96c094ca22eaa33e593 /libs/utils/CallStack.cpp
parentcdcee265cad1fe10960bd3df32ac76c4afbd3963 (diff)
eclair snapshot
Diffstat (limited to 'libs/utils/CallStack.cpp')
-rw-r--r--libs/utils/CallStack.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/utils/CallStack.cpp b/libs/utils/CallStack.cpp
index 2fdaa71186..55b6024f63 100644
--- a/libs/utils/CallStack.cpp
+++ b/libs/utils/CallStack.cpp
@@ -311,7 +311,8 @@ String8 CallStack::toStringSingleLevel(const char* prefix, int32_t level) const
} else {
void const* start = 0;
name = MapInfo::mapAddressToName(ip, "<unknown>", &start);
- snprintf(tmp, 256, "pc %08lx %s", uintptr_t(ip)-uintptr_t(start), name);
+ snprintf(tmp, 256, "pc %08lx %s",
+ long(uintptr_t(ip)-uintptr_t(start)), name);
res.append(tmp);
}
res.append("\n");