Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Unified Diff: minidump/minidump_thread_id_map.cc

Issue 983103004: win: fixes for Windows x64 (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: mac Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « minidump/minidump_simple_string_dictionary_writer_test.cc ('k') | minidump/minidump_writable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: minidump/minidump_thread_id_map.cc
diff --git a/minidump/minidump_thread_id_map.cc b/minidump/minidump_thread_id_map.cc
index a6ac6fdd78ac3cb04e5425880a7087f5ba320594..1fab698edcc9c99a76f664acc1d4416c2f2d23f2 100644
--- a/minidump/minidump_thread_id_map.cc
+++ b/minidump/minidump_thread_id_map.cc
@@ -19,6 +19,7 @@
#include <utility>
#include "base/logging.h"
+#include "base/numerics/safe_conversions.h"
#include "snapshot/thread_snapshot.h"
namespace crashpad {
@@ -54,7 +55,8 @@ void BuildMinidumpThreadIDMap(
for (const ThreadSnapshot* thread_snapshot : thread_snapshots) {
uint64_t thread_id_64 = thread_snapshot->ThreadID();
if (thread_id_map->find(thread_id_64) == thread_id_map->end()) {
- uint32_t thread_id_32 = thread_id_map->size();
+ uint32_t thread_id_32 =
+ base::checked_cast<uint32_t>(thread_id_map->size());
thread_id_map->insert(std::make_pair(thread_id_64, thread_id_32));
}
}
« no previous file with comments | « minidump/minidump_simple_string_dictionary_writer_test.cc ('k') | minidump/minidump_writable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698