diff --git a/tools/llvm-size/llvm-size.cpp b/tools/llvm-size/llvm-size.cpp index 25937583a15..b90024908e7 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(Radix), false, true); return result.size(); }