1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

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 70edd780c7
commit afb0bb3a17

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();