Fix build failure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140755 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2011-09-29 01:14:42 +00:00
parent 3511cedf36
commit 7f3654db0c

View File

@ -127,8 +127,10 @@ static void PrintObjectSectionSizes(ObjectFile *o) {
if (error(i->getName(name))) return;
if (error(i->getAddress(addr))) return;
max_name_len = std::max(max_name_len, name.size());
max_size_len = std::max(max_size_len, getNumLengthAsString(size));
max_addr_len = std::max(max_addr_len, getNumLengthAsString(addr));
max_size_len = std::max(max_size_len,
(std::size_t) getNumLengthAsString(size));
max_addr_len = std::max(max_addr_len,
(std::size_t) getNumLengthAsString(addr));
}
// Add extra padding.