summaryrefslogtreecommitdiffstats
path: root/libbacktrace
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2018-12-17 12:51:36 -0800
committerYi Kong <yikong@google.com>2018-12-17 12:51:36 -0800
commitc91e6f9e5fcc9e4965ddd0d3b178edb0287cd930 (patch)
tree3eb84743d6354538ca7e7b061271f60fcf41f15f /libbacktrace
parent567c45e10ea1186822768d6da2cc64f47e467c6b (diff)
downloadsystem_core-c91e6f9e5fcc9e4965ddd0d3b178edb0287cd930.tar.gz
system_core-c91e6f9e5fcc9e4965ddd0d3b178edb0287cd930.tar.bz2
system_core-c91e6f9e5fcc9e4965ddd0d3b178edb0287cd930.zip
[libbacktrace] Fix sign-compare warning
static_cast GetThreadId result to pid_t. Test: m checkbuild Change-Id: Id3f541c1cb6cad9471e0cedf2ca49ce0fc38df38
Diffstat (limited to 'libbacktrace')
-rw-r--r--libbacktrace/BacktraceCurrent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbacktrace/BacktraceCurrent.cpp b/libbacktrace/BacktraceCurrent.cpp
index 39cb995c5..038b59e15 100644
--- a/libbacktrace/BacktraceCurrent.cpp
+++ b/libbacktrace/BacktraceCurrent.cpp
@@ -76,7 +76,7 @@ bool BacktraceCurrent::Unwind(size_t num_ignore_frames, void* ucontext) {
return UnwindFromContext(num_ignore_frames, ucontext);
}
- if (Tid() != android::base::GetThreadId()) {
+ if (Tid() != static_cast<pid_t>(android::base::GetThreadId())) {
return UnwindThread(num_ignore_frames);
}