[llvm] r268458 - Fix template type deduction error on some compilers.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 15:37:12 PDT 2016
Author: zturner
Date: Tue May 3 17:37:12 2016
New Revision: 268458
URL: http://llvm.org/viewvc/llvm-project?rev=268458&view=rev
Log:
Fix template type deduction error on some compilers.
Modified:
llvm/trunk/tools/llvm-pdbdump/llvm-pdbdump.cpp
Modified: llvm/trunk/tools/llvm-pdbdump/llvm-pdbdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbdump/llvm-pdbdump.cpp?rev=268458&r1=268457&r2=268458&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbdump/llvm-pdbdump.cpp (original)
+++ llvm/trunk/tools/llvm-pdbdump/llvm-pdbdump.cpp Tue May 3 17:37:12 2016
@@ -154,7 +154,7 @@ static void dumpBytes(raw_ostream &S, St
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();
More information about the llvm-commits
mailing list