Skip to content

Commit

Permalink
Fix std::min ambiguity between uint32 and size_t.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307205 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Zachary Turner committed Jul 5, 2017
1 parent 8ba482d commit 8b70926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/llvm-pdbutil/FormatUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ std::string llvm::pdb::truncateStringBack(StringRef S, uint32_t MaxLen) {
return S;

assert(MaxLen >= 3);
uint32_t FinalLen = std::min(S.size(), MaxLen - 3);
uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3);
S = S.take_front(FinalLen);
return std::string(S) + std::string("...");
}
Expand Down

0 comments on commit 8b70926

Please sign in to comment.