[llvm-commits] CVS: llvm/lib/Support/Statistic.cpp
Anand Shukla
ashukla at cs.uiuc.edu
Fri Oct 4 18:57:00 PDT 2002
Changes in directory llvm/lib/Support:
Statistic.cpp updated: 1.4 -> 1.5
---
Log message:
added cast to unsigned to compile with gcc3.2 (sparc)
---
Diffs of the changes:
Index: llvm/lib/Support/Statistic.cpp
diff -u llvm/lib/Support/Statistic.cpp:1.4 llvm/lib/Support/Statistic.cpp:1.5
--- llvm/lib/Support/Statistic.cpp:1.4 Tue Oct 1 17:35:45 2002
+++ llvm/lib/Support/Statistic.cpp Fri Oct 4 18:56:18 2002
@@ -70,8 +70,10 @@
// 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...
More information about the llvm-commits
mailing list