Fix type ambiguity with std::max

llvm-svn: 286498
This commit is contained in:
Zachary Turner 2016-11-10 20:35:21 +00:00
parent 6d1aa9fbeb
commit 739dd10ba5

View File

@ -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<uint64_t>(4, llvm::alignTo(Power, 4) / 4);
}
// The width of a block of data including all spaces for group separators.