diff options
author | Rui Ueyama <ruiu@google.com> | 2016-10-11 19:28:56 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-10-11 19:28:56 +0000 |
commit | 888de9b031b80041d52f584b771edb4278623d2e (patch) | |
tree | 999dc4eee8f960aa916cfb1a8a28e5b5200a5d8d /llvm/lib/Support/NativeFormatting.cpp | |
parent | 733be51dcdf4ec40171c5d747b59f6dfa010b0a1 (diff) | |
download | bcm5719-llvm-888de9b031b80041d52f584b771edb4278623d2e.tar.gz bcm5719-llvm-888de9b031b80041d52f584b771edb4278623d2e.zip |
Fix build error on LP64 platforms.
llvm-svn: 283922
Diffstat (limited to 'llvm/lib/Support/NativeFormatting.cpp')
-rw-r--r-- | llvm/lib/Support/NativeFormatting.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/NativeFormatting.cpp b/llvm/lib/Support/NativeFormatting.cpp index 84f6c390b02..9989488ddcc 100644 --- a/llvm/lib/Support/NativeFormatting.cpp +++ b/llvm/lib/Support/NativeFormatting.cpp @@ -103,7 +103,8 @@ void llvm::write_hex(raw_ostream &S, unsigned long long N, std::size_t MinWidth, bool Upper, bool Prefix) { unsigned Nibbles = (64 - countLeadingZeros(N) + 3) / 4; unsigned PrefixChars = Prefix ? 2 : 0; - unsigned Width = std::max(MinWidth, std::max(1u, Nibbles) + PrefixChars); + unsigned Width = std::max(static_cast<unsigned>(MinWidth), + std::max(1u, Nibbles) + PrefixChars); char NumberBuffer[20] = "0x0000000000000000"; if (!Prefix) |