Index: minidump/minidump_exception_writer_test.cc |
diff --git a/minidump/minidump_exception_writer_test.cc b/minidump/minidump_exception_writer_test.cc |
index 7309e469b1453ca9a002568aa218d79619a025ab..a0866ba0353b0014c29a4c956e9296379dc6ca3e 100644 |
--- a/minidump/minidump_exception_writer_test.cc |
+++ b/minidump/minidump_exception_writer_test.cc |
@@ -181,7 +181,7 @@ TEST(MinidumpExceptionWriter, Standard) { |
expected_exception_stream.ExceptionRecord.ExceptionAddress = |
kExceptionAddress; |
expected_exception_stream.ExceptionRecord.NumberParameters = |
- exception_information.size(); |
+ static_cast<uint32_t>(exception_information.size()); |
for (size_t index = 0; index < exception_information.size(); ++index) { |
expected_exception_stream.ExceptionRecord.ExceptionInformation[index] = |
exception_information[index]; |
@@ -209,7 +209,8 @@ TEST(MinidumpExceptionWriter, InitializeFromSnapshot) { |
expect_exception.ExceptionRecord.ExceptionCode = 100; |
expect_exception.ExceptionRecord.ExceptionFlags = 1; |
expect_exception.ExceptionRecord.ExceptionAddress = 0xfedcba9876543210; |
- expect_exception.ExceptionRecord.NumberParameters = exception_codes.size(); |
+ expect_exception.ExceptionRecord.NumberParameters = |
+ static_cast<uint32_t>(exception_codes.size()); |
for (size_t index = 0; index < exception_codes.size(); ++index) { |
expect_exception.ExceptionRecord.ExceptionInformation[index] = |
exception_codes[index]; |