summaryrefslogtreecommitdiff
path: root/tools/llvm-size
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-09-28 21:24:44 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-09-28 21:24:44 +0000
commit7da52dd2fa0be032ba7f66912b0ce4500a6565c0 (patch)
treeeb5dd04e07c37ed2ec888b130ea63704f4013a73 /tools/llvm-size
parent7d3e2b78c74ad92bda0836de3e056ee8ec41e446 (diff)
downloadllvm-7da52dd2fa0be032ba7f66912b0ce4500a6565c0.tar.gz
llvm-7da52dd2fa0be032ba7f66912b0ce4500a6565c0.tar.bz2
llvm-7da52dd2fa0be032ba7f66912b0ce4500a6565c0.tar.xz
Fix cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-size')
-rw-r--r--tools/llvm-size/llvm-size.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-size/llvm-size.cpp b/tools/llvm-size/llvm-size.cpp
index 25937583a1..b90024908e 100644
--- a/tools/llvm-size/llvm-size.cpp
+++ b/tools/llvm-size/llvm-size.cpp
@@ -80,7 +80,7 @@ static bool error(error_code ec) {
static int getNumLengthAsString(uint64_t num) {
APInt conv(64, num);
SmallString<32> result;
- conv.toString(result, unsigned int(Radix), false, true);
+ conv.toString(result, static_cast<unsigned int>(Radix), false, true);
return result.size();
}