diff options
author | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-10-04 23:56:18 +0000 |
---|---|---|
committer | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-10-04 23:56:18 +0000 |
commit | c1d4d79d9350373569b6764d9c053e7b096bb7bc (patch) | |
tree | 6a20361a3358a8e95d7e0ee5171af06b134ea55c /lib/Support/Statistic.cpp | |
parent | 41a29f2b6f08aeb5653825d66b9d48b9aa6ef291 (diff) |
added cast to unsigned to compile with gcc3.2 (sparc)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Statistic.cpp')
-rw-r--r-- | lib/Support/Statistic.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp index b6c75c2ade..4db949a99a 100644 --- a/lib/Support/Statistic.cpp +++ b/lib/Support/Statistic.cpp @@ -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... |