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