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
This commit is contained in:
mark@chromium.org 2011-08-11 13:45:30 +00:00
parent 8f2b058398
commit e6c0689091

View file

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