OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8a5541
)
Minor code cleanup.
author
Dan Gohman
<gohman@apple.com>
Fri, 29 Jan 2010 21:57:46 +0000
(21:57 +0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 29 Jan 2010 21:57:46 +0000
(21:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94848
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/FileCheck/FileCheck.cpp
patch
|
blob
|
history
diff --git
a/utils/FileCheck/FileCheck.cpp
b/utils/FileCheck/FileCheck.cpp
index
ddc8dc2
..
9619f94
100644
(file)
--- a/
utils/FileCheck/FileCheck.cpp
+++ b/
utils/FileCheck/FileCheck.cpp
@@
-378,7
+378,7
@@
void Pattern::PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
double BestQuality = 0;
// Use an arbitrary 4k limit on how far we will search.
- for (size_t i = 0, e = std::min(
4096, int(Buffer.size()
)); i != e; ++i) {
+ for (size_t i = 0, e = std::min(
size_t(4096), Buffer.size(
)); i != e; ++i) {
if (Buffer[i] == '\n')
++NumLinesForward;