diff options
author | dmaclach <dmaclach@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-07-27 16:33:22 +0000 |
---|---|---|
committer | dmaclach <dmaclach@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-07-27 16:33:22 +0000 |
commit | a2d5da4831bf53acd23cd7bc6e08818f4d02efff (patch) | |
tree | 9e1c31be0a3e6a028d9e92b18576cb7dca32d8f6 /src/common/dwarf | |
parent | Adding 11 languages to the crash uploader app on the Mac, contributed by the ... (diff) | |
download | breakpad-a2d5da4831bf53acd23cd7bc6e08818f4d02efff.tar.xz |
Fixes up some style nits, and gets us compiling on Leopard again.
Review: http://breakpad.appspot.com/133001
BUG:none
TEST:Compile on Leopard
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@631 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common/dwarf')
-rw-r--r-- | src/common/dwarf/bytereader.cc | 6 | ||||
-rw-r--r-- | src/common/dwarf/bytereader.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/dwarf/bytereader.cc b/src/common/dwarf/bytereader.cc index 95193834..8721b7a5 100644 --- a/src/common/dwarf/bytereader.cc +++ b/src/common/dwarf/bytereader.cc @@ -123,11 +123,11 @@ uint64 ByteReader::ReadEncodedPointer(const char *buffer, // First, find the offset to START from the closest prior aligned // address. - uint64_t skew = section_base_ & (AddressSize() - 1); + size_t skew = section_base_ & (AddressSize() - 1); // Now find the offset from that aligned address to buffer. - uint64_t offset = skew + (buffer - buffer_base_); + off_t offset = skew + (buffer - buffer_base_); // Round up to the next boundary. - uint64_t aligned = (offset + AddressSize() - 1) & -AddressSize(); + size_t aligned = (offset + AddressSize() - 1) & -AddressSize(); // Convert back to a pointer. const char *aligned_buffer = buffer_base_ + (aligned - skew); // Finally, store the length and actually fetch the pointer. diff --git a/src/common/dwarf/bytereader.h b/src/common/dwarf/bytereader.h index aaa97c4f..f01f319d 100644 --- a/src/common/dwarf/bytereader.h +++ b/src/common/dwarf/bytereader.h @@ -301,7 +301,7 @@ class ByteReader { // Base addresses for Linux C++ exception handling data's encoded pointers. bool have_section_base_, have_text_base_, have_data_base_; bool have_function_base_; - uint64 section_base_, text_base_, data_base_, function_base_; + size_t section_base_, text_base_, data_base_, function_base_; const char *buffer_base_; }; |