projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8120ebf
)
Fix std::min ambiguity between uint32 and size_t.
author
Zachary Turner
<zturner@google.com>
Wed, 5 Jul 2017 21:59:20 +0000
(21:59 +0000)
committer
Zachary Turner
<zturner@google.com>
Wed, 5 Jul 2017 21:59:20 +0000
(21:59 +0000)
llvm-svn: 307205
llvm/tools/llvm-pdbutil/FormatUtil.cpp
patch
|
blob
|
history
diff --git
a/llvm/tools/llvm-pdbutil/FormatUtil.cpp
b/llvm/tools/llvm-pdbutil/FormatUtil.cpp
index 5a94e038d0b86871229efe89b7eb4a5eb9c41331..46a1774f166967eda19e8819445aff6b426f3cf6 100644
(file)
--- a/
llvm/tools/llvm-pdbutil/FormatUtil.cpp
+++ b/
llvm/tools/llvm-pdbutil/FormatUtil.cpp
@@
-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("...");
}