mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-23 11:16:32 +00:00
Fix some build warnings
A=zhurunz R=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@439 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
0cbd50c975
commit
bb618860df
|
@ -366,7 +366,7 @@ bool LinuxDumper::GetStackInfo(const void** stack, size_t* stack_len,
|
|||
reinterpret_cast<uint8_t*>(int_stack_pointer & ~(page_size - 1));
|
||||
|
||||
// The number of bytes of stack which we try to capture.
|
||||
static unsigned kStackToCapture = 32 * 1024;
|
||||
static ptrdiff_t kStackToCapture = 32 * 1024;
|
||||
|
||||
const MappingInfo* mapping = FindMapping(stack_pointer);
|
||||
if (!mapping)
|
||||
|
|
|
@ -437,7 +437,7 @@ class MinidumpWriter {
|
|||
// we used the actual state of the thread we would find it running in the
|
||||
// signal handler with the alternative stack, which would be deeply
|
||||
// unhelpful.
|
||||
if (thread.thread_id == crashing_tid_) {
|
||||
if ((pid_t)thread.thread_id == crashing_tid_) {
|
||||
const void* stack;
|
||||
size_t stack_len;
|
||||
if (!dumper_.GetStackInfo(&stack, &stack_len, GetStackPointer()))
|
||||
|
|
Loading…
Reference in a new issue