From: Zachary Turner Date: Thu, 10 Nov 2016 20:35:21 +0000 (+0000) Subject: Fix type ambiguity with std::max X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6269f03267b856eaa5538bec3cdf8ed0776f5d9;p=llvm Fix type ambiguity with std::max git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286498 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index 9acc0d8e46d..218d4986fff 100644 --- a/lib/Support/raw_ostream.cpp +++ b/lib/Support/raw_ostream.cpp @@ -370,7 +370,7 @@ raw_ostream &raw_ostream::operator<<(const FormattedBytes &FB) { unsigned Power = 0; if (MaxOffset > 0) Power = llvm::Log2_64_Ceil(MaxOffset); - OffsetWidth = std::max(4ULL, llvm::alignTo(Power, 4) / 4); + OffsetWidth = std::max(4, llvm::alignTo(Power, 4) / 4); } // The width of a block of data including all spaces for group separators.