aboutsummaryrefslogtreecommitdiff
path: root/src/client/minidump_file_writer.h
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2011-08-11 13:45:30 +0000
committermark@chromium.org <mark@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2011-08-11 13:45:30 +0000
commite6c068909146fef50916841772d91b0ac1e8512a (patch)
treeb0261fc0a7573a976ed65610dffdaa8c77f8bcda /src/client/minidump_file_writer.h
parentFix clang warnings. (diff)
downloadbreakpad-e6c068909146fef50916841772d91b0ac1e8512a.tar.xz
The first field in a MDLocationDescriptor is a u_int32_t, so change this cast
to the correct type. This fixes an error newer clang versions find in c++ 0x mode. Patch by Rafael Ávila de Espí­ndola <respindola@mozilla.com> https://bugzilla.mozilla.org/show_bug.cgi?id=677641 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@824 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/minidump_file_writer.h')
-rw-r--r--src/client/minidump_file_writer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/minidump_file_writer.h b/src/client/minidump_file_writer.h
index cded3585..21d4ce68 100644
--- a/src/client/minidump_file_writer.h
+++ b/src/client/minidump_file_writer.h
@@ -151,7 +151,8 @@ class UntypedMDRVA {
// Return size and position
inline MDLocationDescriptor location() const {
- MDLocationDescriptor location = { static_cast<int>(size_), position_ };
+ MDLocationDescriptor location = { static_cast<u_int32_t>(size_),
+ position_ };
return location;
}