mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
added cast to unsigned to compile with gcc3.2 (sparc)
llvm-svn: 4041
This commit is contained in:
parent
75e143a29e
commit
02acbe2c93
@ -70,8 +70,10 @@ void StatisticBase::destroy() const {
|
||||
// Figure out how long the biggest Value and Name fields are...
|
||||
unsigned MaxNameLen = 0, MaxValLen = 0;
|
||||
for (unsigned i = 0, e = AccumStats->size(); i != e; ++i) {
|
||||
MaxValLen = std::max(MaxValLen, (*AccumStats)[i].Value.length());
|
||||
MaxNameLen = std::max(MaxNameLen, std::strlen((*AccumStats)[i].Name));
|
||||
MaxValLen = std::max(MaxValLen,
|
||||
(unsigned)(*AccumStats)[i].Value.length());
|
||||
MaxNameLen = std::max(MaxNameLen,
|
||||
(unsigned)std::strlen((*AccumStats)[i].Name));
|
||||
}
|
||||
|
||||
// Sort the fields...
|
||||
|
@ -70,8 +70,10 @@ void StatisticBase::destroy() const {
|
||||
// Figure out how long the biggest Value and Name fields are...
|
||||
unsigned MaxNameLen = 0, MaxValLen = 0;
|
||||
for (unsigned i = 0, e = AccumStats->size(); i != e; ++i) {
|
||||
MaxValLen = std::max(MaxValLen, (*AccumStats)[i].Value.length());
|
||||
MaxNameLen = std::max(MaxNameLen, std::strlen((*AccumStats)[i].Name));
|
||||
MaxValLen = std::max(MaxValLen,
|
||||
(unsigned)(*AccumStats)[i].Value.length());
|
||||
MaxNameLen = std::max(MaxNameLen,
|
||||
(unsigned)std::strlen((*AccumStats)[i].Name));
|
||||
}
|
||||
|
||||
// Sort the fields...
|
||||
|
Loading…
Reference in New Issue
Block a user