Fix template type deduction error on some compilers.

llvm-svn: 268458
This commit is contained in:
Zachary Turner 2016-05-03 22:37:12 +00:00
parent 50271f787e
commit 097bb7acb3
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ static void dumpBytes(raw_ostream &S, StringRef Bytes, uint32_t BytesPerRow,
S << "[";
while (!Bytes.empty()) {
uint32_t BytesThisLine = std::min(Bytes.size(), BytesPerRow);
size_t BytesThisLine = std::min<size_t>(Bytes.size(), BytesPerRow);
while (BytesThisLine > 0) {
S << format_hex_no_prefix(uint8_t(Bytes.front()), 2, true);
Bytes = Bytes.drop_front();