[libbacktrace] Fix sign-compare warning

static_cast GetThreadId result to pid_t.

Test: m checkbuild
Change-Id: Id3f541c1cb6cad9471e0cedf2ca49ce0fc38df38
This commit is contained in:
Yi Kong 2018-12-17 12:51:36 -08:00
parent 567c45e10e
commit c91e6f9e5f

View file

@ -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);
}