From afb0bb3a17ec6fa7ec66f01c1448bf3c6c265e42 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Tue, 3 May 2016 22:37:12 +0000 Subject: [PATCH] Fix template type deduction error on some compilers. llvm-svn: 268458 --- tools/llvm-pdbdump/llvm-pdbdump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-pdbdump/llvm-pdbdump.cpp b/tools/llvm-pdbdump/llvm-pdbdump.cpp index 8fb1d87d14f..0467fdaad43 100644 --- a/tools/llvm-pdbdump/llvm-pdbdump.cpp +++ b/tools/llvm-pdbdump/llvm-pdbdump.cpp @@ -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(Bytes.size(), BytesPerRow); while (BytesThisLine > 0) { S << format_hex_no_prefix(uint8_t(Bytes.front()), 2, true); Bytes = Bytes.drop_front();