mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Fix more -Wshorten-64-to-32 warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -90,7 +90,7 @@ StatisticInfo::~StatisticInfo() {
|
||||
|
||||
// Figure out how long the biggest Value and Name fields are.
|
||||
unsigned MaxNameLen = 0, MaxValLen = 0;
|
||||
for (unsigned i = 0, e = Stats.size(); i != e; ++i) {
|
||||
for (size_t i = 0, e = Stats.size(); i != e; ++i) {
|
||||
MaxValLen = std::max(MaxValLen,
|
||||
(unsigned)utostr(Stats[i]->getValue()).size());
|
||||
MaxNameLen = std::max(MaxNameLen,
|
||||
@@ -106,7 +106,7 @@ StatisticInfo::~StatisticInfo() {
|
||||
<< "===" << std::string(73, '-') << "===\n\n";
|
||||
|
||||
// Print all of the statistics.
|
||||
for (unsigned i = 0, e = Stats.size(); i != e; ++i) {
|
||||
for (size_t i = 0, e = Stats.size(); i != e; ++i) {
|
||||
std::string CountStr = utostr(Stats[i]->getValue());
|
||||
OutStream << std::string(MaxValLen-CountStr.size(), ' ')
|
||||
<< CountStr << " " << Stats[i]->getName()
|
||||
|
Reference in New Issue
Block a user