]> granicus.if.org Git - llvm/commitdiff
Fix template type deduction error on some compilers.
authorZachary Turner <zturner@google.com>
Tue, 3 May 2016 22:37:12 +0000 (22:37 +0000)
committerZachary Turner <zturner@google.com>
Tue, 3 May 2016 22:37:12 +0000 (22:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268458 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-pdbdump/llvm-pdbdump.cpp

index 8fb1d87d14f7e9809f1b110cfe98c029925586dd..0467fdaad434298d5f6493b9bf1fc80760dd68c5 100644 (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();