Commit 3b49b457 authored by ynovikov's avatar ynovikov Committed by Commit bot

Fix -Wshorten-64-to-32 errors on clang ARM64

Review-Url: https://codereview.chromium.org/2491373003
Cr-Commit-Position: refs/heads/master@{#40940}
parent 99c81447
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment