[llvm-commits] [llvm] r140755 - /llvm/trunk/tools/llvm-size/llvm-size.cpp
Daniel Dunbar
daniel at zuster.org
Wed Sep 28 18:14:42 PDT 2011
Author: ddunbar
Date: Wed Sep 28 20:14:42 2011
New Revision: 140755
URL: http://llvm.org/viewvc/llvm-project?rev=140755&view=rev
Log:
Fix build failure.
Modified:
llvm/trunk/tools/llvm-size/llvm-size.cpp
Modified: llvm/trunk/tools/llvm-size/llvm-size.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-size/llvm-size.cpp?rev=140755&r1=140754&r2=140755&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-size/llvm-size.cpp (original)
+++ llvm/trunk/tools/llvm-size/llvm-size.cpp Wed Sep 28 20:14:42 2011
@@ -127,8 +127,10 @@
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.
More information about the llvm-commits
mailing list