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

Unified Diff: src/base/cpu.cc

Issue 2491373003: Fix -Wshorten-64-to-32 errors on clang ARM64 (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/cpu.cc
diff --git a/src/base/cpu.cc b/src/base/cpu.cc
index 90ed35138319c4ee27b6ee5cab4289c03e9063c7..cf1f9c399db413883507c15d4db847634cdb92ee 100644
--- a/src/base/cpu.cc
+++ b/src/base/cpu.cc
@@ -607,7 +607,7 @@ CPU::CPU()
char* implementer = cpu_info.ExtractField("CPU implementer");
if (implementer != NULL) {
char* end;
- implementer_ = strtol(implementer, &end, 0);
+ implementer_ = static_cast<int>(strtol(implementer, &end, 0));
if (end == implementer) {
implementer_ = 0;
}
@@ -617,7 +617,7 @@ CPU::CPU()
char* variant = cpu_info.ExtractField("CPU variant");
if (variant != NULL) {
char* end;
- variant_ = strtol(variant, &end, 0);
+ variant_ = static_cast<int>(strtol(variant, &end, 0));
if (end == variant) {
variant_ = -1;
}
@@ -628,7 +628,7 @@ CPU::CPU()
char* part = cpu_info.ExtractField("CPU part");
if (part != NULL) {
char* end;
- part_ = strtol(part, &end, 0);
+ part_ = static_cast<int>(strtol(part, &end, 0));
if (end == part) {
part_ = 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698